usb: dwc3: core: enable phy suspend quirk on non-FPGA
authorFelipe Balbi <balbi@ti.com>
Thu, 6 Nov 2014 17:31:00 +0000 (11:31 -0600)
committerFelipe Balbi <balbi@ti.com>
Thu, 6 Nov 2014 22:18:19 +0000 (16:18 -0600)
as it turns out, at least AM437x silicon (non-FPGA)
needs to enable PHY suspend quirk. So let's allow
for PHY suspend quirk to be used with non-FPGA
builds too.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c

index 8ae42b8db02b4f7b90a9c33a6668cdd8ce2f87d7..25ddc39efad880ca05ce2ab7bbe55523be66d8c6 100644 (file)
@@ -404,7 +404,7 @@ static void dwc3_phy_setup(struct dwc3 *dwc)
        if (dwc->tx_de_emphasis_quirk)
                reg |= DWC3_GUSB3PIPECTL_TX_DEEPH(dwc->tx_de_emphasis);
 
-       if (dwc->dis_u3_susphy_quirk && dwc->is_fpga)
+       if (dwc->dis_u3_susphy_quirk)
                reg &= ~DWC3_GUSB3PIPECTL_SUSPHY;
 
        dwc3_writel(dwc->regs, DWC3_GUSB3PIPECTL(0), reg);
@@ -422,7 +422,7 @@ static void dwc3_phy_setup(struct dwc3 *dwc)
        if (dwc->revision > DWC3_REVISION_194A)
                reg |= DWC3_GUSB2PHYCFG_SUSPHY;
 
-       if (dwc->dis_u2_susphy_quirk && dwc->is_fpga)
+       if (dwc->dis_u2_susphy_quirk)
                reg &= ~DWC3_GUSB2PHYCFG_SUSPHY;
 
        dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(0), reg);