usb: dwc2: implement hibernation during bus suspend/resume
authorGregory Herrero <gregory.herrero@intel.com>
Wed, 29 Apr 2015 20:09:02 +0000 (22:09 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Apr 2015 20:18:43 +0000 (15:18 -0500)
commitf81f46e1f530900323b6e32eba1af7244ca69537
tree00397ede9a442a5233b0b6d3a14f277ca954231e
parentd17ee77b3044da8b8f550bfdf3be8fdcc9d09858
usb: dwc2: implement hibernation during bus suspend/resume

Allow controller to enter in hibernation during usb bus suspend and
inform both phy and gadget about the suspended state.
While in hibernation, the controller can't detect the resume condition.
An external mechanism must call usb_phy_set_suspend on resume.
Exit hibernation when controller gets the resume interrupt and inform
only gadget driver about it.

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.h
drivers/usb/dwc2/core_intr.c