Message ID | 20180720120558.8831-1-john@phrozen.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 4c0819554bcd..0bc9fd65e29e 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -419,6 +419,10 @@ static int dwc2_driver_probe(struct platform_device *dev) if (retval) return retval; + /* Enable USB port before any regs access */ + if (dwc2_readl(hsotg->regs + PCGCTL) & 0x0f) + dwc2_writel(0x00, hsotg->regs + PCGCTL); + retval = dwc2_get_dr_mode(hsotg); if (retval) goto error;