USB: ci13xxx: Fail EP HALT operation in suspend state
USB function drivers typically don't issue set_halt in
suspend state, but some function drivers e.g. f_fs/adb
allow userspace to do this using ioctl. Hence, there is
a possibility of userspace issuing set_halt (e.g. after
ep_queue failed in bus_suspend with remote-wakeup disabled.
While at it also update ep_dequeue to not rely on in_lpm
flag but also check for suspended state to protect when
clocks are off but in_lpm is not set yet.
Change-Id: I6050a77908e3af317cd1942b1d772959b5a292cd
Signed-off-by:
Manu Gautam <mgautam@codeaurora.org>
Loading
Please register or sign in to comment