diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2019-09-09 18:52:39 +0000 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2019-09-10 10:00:53 +0200 |
commit | b35b8076828d1059c1fcc648ed8c8210ebe6a3dd (patch) | |
tree | 4a2a247a3b47893075f53df1634a47ec7f2be9af /drivers | |
parent | c705fc3b40b88bfbf465448643c91da71426df2f (diff) | |
download | u-boot-b35b8076828d1059c1fcc648ed8c8210ebe6a3dd.tar.gz u-boot-b35b8076828d1059c1fcc648ed8c8210ebe6a3dd.tar.bz2 u-boot-b35b8076828d1059c1fcc648ed8c8210ebe6a3dd.zip |
usb: xhci-dwc3: Add support for dis_u2_susphy_quirk
This quirk is necessary for the Amlogic GXL SoCs otherwise the
Port 2 PHY doesn't get out of suspend and U-Boot resets the board after:
XHCI timeout on event type 33... cannot recover.
BUG: failure at drivers/usb/host/xhci-ring.c:474/xhci_wait_for_event()!
BUG!
This quirk is also handled in the dwc3 core code, but until the
xhci-dwc3 driver uses the dwc3 core, the quirk must be handled here
to fix USB support on the Amlogic libretech-cc and libretech-ac board
when a device is only plugged in the OTG port.
Cc: Yuri Frolov <crashing.kernel@gmail.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Fixes: dc9cdf859e ("usb: dwc3: Add DWC3 controller driver support")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/xhci-dwc3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index 9e8cae7ae4..55a1b22cf6 100644 --- a/drivers/usb/host/xhci-dwc3.c +++ b/drivers/usb/host/xhci-dwc3.c @@ -150,6 +150,9 @@ static int xhci_dwc3_probe(struct udevice *dev) if (dev_read_bool(dev, "snps,dis-u2-freeclk-exists-quirk")) reg &= ~DWC3_GUSB2PHYCFG_U2_FREECLK_EXISTS; + if (dev_read_bool(dev, "snps,dis_u2_susphy_quirk")) + reg &= ~DWC3_GUSB2PHYCFG_SUSPHY; + writel(reg, &dwc3_reg->g_usb2phycfg[0]); dr_mode = usb_get_dr_mode(dev_of_offset(dev)); |