Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d096e0b3 authored by Manu Gautam's avatar Manu Gautam
Browse files

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: default avatarManu Gautam <mgautam@codeaurora.org>
parent 9f7af2ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment