usb: dwc2: add bus suspend/resume for dwc2
authorKever Yang <kever.yang@rock-chips.com>
Mon, 10 Nov 2014 13:09:43 +0000 (21:09 +0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 12 Nov 2014 15:12:34 +0000 (09:12 -0600)
commit0cf884e819e05437287a668b9bfcc198bab6329c
tree2c67fee121cc0a8f0f65ea24f3295247eb6e3cfb
parentd3cf6a4b01894e69e9e800ef76f34eaa13357ff1
usb: dwc2: add bus suspend/resume for dwc2

Hcd controller needs bus_suspend/resume, dwc2 controller make
root hub generate suspend/resume signal with hprt0 register
when work in host mode.
After the root hub enter suspend, we can make controller enter
low power state with PCGCTL register.

We also update the lx_state for hsotg state.

This patch has tested on rk3288 with suspend/resume.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/hcd.c