When the initialization of usb3 phy fails, when enabled in the system
    the dwc3_probe deferral is further qualified by the maximum speed.
    In devices such as dra7xx, there are multiple dwc3 instances where the
    maximum_speed is different between the instances.

    This patch depends on http://www.spinics.net/lists/linux-usb/msg88627.html

Signed-off-by: Ruchika Kharwar <ruch...@ti.com>
---
 drivers/usb/dwc3/core.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 7b98e4f..05f2205 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -460,8 +460,11 @@ static int dwc3_probe(struct platform_device *pdev)
                if (ret == -ENXIO)
                        return ret;
 
-               dev_err(dev, "no usb3 phy configured\n");
-               return -EPROBE_DEFER;
+               if (dwc->maximum_speed == USB_SPEED_SUPER) {
+                       dev_err(dev, "no usb3 phy configured\n");
+                       return -EPROBE_DEFER;
+               } else
+                       dev_dbg(dev, "maximum speed is < super\n");
        }
 
        usb_phy_set_suspend(dwc->usb2_phy, 0);
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to