usb: dwc3: Disable phy suspend after power-on reset
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Fri, 9 Aug 2019 19:15:52 +0000 (12:15 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 22 Oct 2019 07:26:45 +0000 (10:26 +0300)
commit9ba3aca8fe82318805709036bd50bee64570088b
tree953f911554e2642404345324ffe9239a1dd40050
parent7d194c2100ad2a6dded545887d02754948ca5241
usb: dwc3: Disable phy suspend after power-on reset

For DRD controllers, the programming guide recommended that
GUSB3PIPECTL.SUSPENDABLE and GUSB2PHYCFG.SUSPHY to be cleared after
power-on reset and only set after the controller initialization is
completed. This can be done after device soft-reset in dwc3_core_init().
This patch makes sure to clear GUSB3PIPECTL.SUSPENDABLE and
GUSB2PHYCFG.SUSPHY before core initialization and only set them after
the device soft-reset is completed.

Reference: DWC_usb3 3.30a and DWC_usb31 1.90a programming guide section
1.2.49 and 1.2.45

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c