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:
Ashish Kumar Gupta <kumarashishg@google.com>
Loading
Please sign in to comment