]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb839b699c2d49e32fcc204c43eeb1fc9526b169b
tree00397ede9a442a5233b0b6d3a14f277ca954231e
parent1953bc4ad5457d90b0fb8a826e938ff2858d2ab2
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