Commit 71a9b4bd authored by Ashish Kumar Gupta's avatar Ashish Kumar Gupta Committed by Todd Kjos
Browse files

ANDROID: usb: gadget: android_f_accessory: remove sleeping function from


spinlock

misc_register function can sleep the execution and code shouldn't sleep
in the atomic context. Move misc_register out of spinlock.

use GFP_ATOMIC flag in memory allocation so the code context shouldn't
go into sleep mode.

Test: manually tested the above steps, and successfully switch between
USB modes.
Test: Run AOA verifier tool
Bug: 322732675

Change-Id: I9cd059a23d710cfd809add5801e85df17d55f6f7
Signed-off-by: default avatarAshish Kumar Gupta <kumarashishg@google.com>
parent 1b23ba8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment