usb: dwc2: bus suspend/resume for hosts with DWC2_POWER_DOWN_PARAM_NONE
authorDouglas Anderson <dianders@chromium.org>
Thu, 18 Apr 2019 00:13:52 +0000 (17:13 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:47 +0000 (09:13 +0300)
commit6f6d70597c15b2a406afa541517e6ad35f56a8a3
treeb0cfa4aa1a03b80fec24a905e108eb5ec3c3a2ba
parentc99993376f72ca3dcc989813512607c6435cbed8
usb: dwc2: bus suspend/resume for hosts with DWC2_POWER_DOWN_PARAM_NONE

This is an attempt to rehash commit 0cf884e819e0 ("usb: dwc2: add bus
suspend/resume for dwc2") on ToT.  That commit was reverted in commit
b0bb9bb6ce01 ("Revert "usb: dwc2: add bus suspend/resume for dwc2"")
because apparently it broke the Altera SOCFPGA.

With all the changes that have happened to dwc2 in the meantime, it's
possible that the Altera SOCFPGA will just magically work with this
change now.  ...and it would be good to get bus suspend/resume
implemented.

This change is a forward port of one that's been living in the Chrome
OS 3.14 kernel tree.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/hcd.c