usb: dwc3: core: Fix broken system suspend/resume on AM437x
authorRoger Quadros <rogerq@ti.com>
Fri, 16 Mar 2018 14:44:27 +0000 (16:44 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 22 Mar 2018 08:50:15 +0000 (10:50 +0200)
commit7d11c3ac66694097a1f409bc3559664c48390d73
tree91e8aa088e43f6e4f99019646a61c4ccb7faed87
parent2f3090c6a8f24d92ea569b099c5bdb5679dcf08a
usb: dwc3: core: Fix broken system suspend/resume on AM437x

On TI's AM437x, the DWC3 controller looses state after a
system suspend/resume. We are re-initializing the controller
but we miss restoring the PRTCAP register. This causes
USB host to break on AM437x after a system suspend/resume.

Fix this by restoring the PRTCAP register on system resume.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c