linux/drivers/usb/dwc2
Gregory Herrero 18b2b37c59 usb: dwc2: gadget: powerup controller if needed
During vbus session, usb controller needs to exit hibernation if it was
previously in suspend state.
Since controller will be resetted and configured, there is no need
to restore registers.

Moreover, set lx_state to L0 on B session. vbus_session callback may
not be used by all platforms. Thus, controller software state needs
to be set to L0 if the controller detects a valid B session.
Otherwise, lx_state will remain L2 and prevent any request submission.

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-04-29 15:19:24 -05:00
..
core_intr.c usb: dwc2: controller must update lx_state before releasing lock 2015-04-29 15:18:49 -05:00
core.c usb: dwc2: set parameter values in probe function 2015-04-29 15:19:02 -05:00
core.h usb: dwc2: set parameter values in probe function 2015-04-29 15:19:02 -05:00
debug.h usb: dwc2: move debugfs code to a separate file 2015-04-29 15:18:25 -05:00
debugfs.c usb: dwc2: debugfs: add support for complete register dump 2015-04-29 15:18:32 -05:00
gadget.c usb: dwc2: gadget: powerup controller if needed 2015-04-29 15:19:24 -05:00
hcd_ddma.c
hcd_intr.c usb: dwc2: handle DMA buffer unmapping sanely 2014-09-19 16:17:58 -07:00
hcd_queue.c usb: dwc2: handle DMA buffer unmapping sanely 2014-09-19 16:17:58 -07:00
hcd.c usb: dwc2: set parameter values in probe function 2015-04-29 15:19:02 -05:00
hcd.h usb: dwc2: set parameter values in probe function 2015-04-29 15:19:02 -05:00
hw.h usb: dwc2: gadget: replace constants with defines 2015-01-30 10:34:11 -06:00
Kconfig usb: dwc2: pci: Select the generic PHY for dwc2-pci driver 2015-03-13 10:40:53 -05:00
Makefile usb: dwc2: move debugfs code to a separate file 2015-04-29 15:18:25 -05:00
pci.c usb: dwc2: pci: Add device mode to the dwc2-pci driver 2015-03-11 15:08:17 -05:00
platform.c usb: dwc2: set parameter values in probe function 2015-04-29 15:19:02 -05:00