USB: f_fs: Disable USB LPM on bus_suspend with ADB
ADB function is mainly used for debugging, hence it is not expected to allow USB LPM followed by system suspend in device bus suspend. Driver also doesn't handle usb_ep_dequeue failure in LPM when adbd is interrupted by signal as buffer is left queued to the hardware after usb_ep_dequeue failure and can cause memory corruption. In addition to above comments, when controller is in lpm there is a chance that ffs_ioctl can issue clear halt as a part of which send_gadget_ep_cmd will be called where registers are accessed with clock's turned off leading to crash due to unclocked access. Hence do not allow usb lpm with adb. Change-Id: Ib89c80318dcdd0dbb35d122a2ab77fb61f83518e Signed-off-by:Manu Gautam <mgautam@codeaurora.org> Signed-off-by:
Mayank Rana <mrana@codeaurora.org> Signed-off-by:
Jack Pham <jackp@codeaurora.org> Signed-off-by:
Rohith Kollalsi <rkollals@codeaurora.org>
Loading
Please register or sign in to comment