]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: controller must update lx_state before releasing lock
authorGregory Herrero <gregory.herrero@intel.com>
Wed, 29 Apr 2015 20:09:03 +0000 (22:09 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Apr 2015 20:18:49 +0000 (15:18 -0500)
commit1b964770c653f0babec143b07e07027516cf3989
treec2a2c523d1599779d44e992b79375e8017aff440
parentb839b699c2d49e32fcc204c43eeb1fc9526b169b
usb: dwc2: controller must update lx_state before releasing lock

During suspend, there could a race condition between ep_queue and
suspend interrupt if lx_state is updated after releasing spinlock in
call_gadget(hsotg, suspend).

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core_intr.c