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 Signed-off-by:Ashish Kumar Gupta <kumarashishg@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:71a9b4bd904095839bdf986af71afd80c2fcb899) Merged-In: I9cd059a23d710cfd809add5801e85df17d55f6f7 Change-Id: I9cd059a23d710cfd809add5801e85df17d55f6f7
Loading
Please sign in to comment