OSDN Git Service

usb: dwc3: Allow controller to enter LPM in bus suspend
authorJack Pham <jackp@codeaurora.org>
Sat, 11 Apr 2015 07:56:27 +0000 (00:56 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:07:04 +0000 (11:07 -0700)
commit5fb67a4aa5b51c107160c22e605d8317705efad1
treea7bdb6684cc0b8b1bbb139ae6adc4c8ea6a7f91d
parent1e50e387dd30974eb42f29b155410a8ba30af51c
usb: dwc3: Allow controller to enter LPM in bus suspend

Add a DT property that decides whether to allow controller
low power mode upon bus suspend, which will be invoked by
the OTG state machine.

It is also required to take the core out of LPM in case
ep_queue is called by the upper layers. In this case,
remote wakeup sequence will be initiated once the core
is out of LPM.

[jackp@codeaurora.org: Squashed with dwc3 changes from
 "usb: dwc3: Add new OTG state OTG_STATE_B_SUSPENDED"]
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Documentation/devicetree/bindings/usb/dwc3.txt
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c