usb: dwc2: gadget: prevent new request submission during suspend
authorGregory Herrero <gregory.herrero@intel.com>
Wed, 29 Apr 2015 20:09:08 +0000 (22:09 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Apr 2015 20:19:19 +0000 (15:19 -0500)
commit7ababa926c66c5c5a862489b475ff5d96a7dd03a
tree8a33132478b56169437201adad16d3d883fddc11
parent9e779778ad7e503434aa76bfc96f98d7d7b2d139
usb: dwc2: gadget: prevent new request submission during suspend

If usb controller is in partial power down, any write to registers may
cause unpredictable behavior.
Thus, prevent any new request submission once controller is in partial
power down.

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/gadget.c