bcm53xx: drop unneeded fix for usb3-lpm-capable DT property
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 191-usb-xhci-add-Broadcom-specific-fake-doorbell.patch
index 61c2a98a8ecfaa93952d1e763f3009ce5391d74e..4a206d2cc28dd4e50df435d452fd90d6e423cbf5 100644 (file)
@@ -22,10 +22,20 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
 
 --- a/drivers/usb/host/xhci-plat.c
 +++ b/drivers/usb/host/xhci-plat.c
-@@ -52,6 +52,9 @@ static void xhci_plat_quirks(struct devi
-       if ((node && of_property_read_bool(node, "usb3-lpm-capable")) ||
-                       (pdata && pdata->usb3_lpm_capable))
-               xhci->quirks |= XHCI_LPM_SUPPORT;
+@@ -38,12 +38,19 @@ static const struct xhci_driver_override
+ static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci)
+ {
++      struct platform_device  *pdev = to_platform_device(dev);
++      struct device_node      *node = pdev->dev.of_node;
++      struct usb_xhci_pdata   *pdata = dev_get_platdata(&pdev->dev);
++
+       /*
+        * As of now platform drivers don't provide MSI support so we ensure
+        * here that the generic code does not try to make a pci_dev from our
+        * dev struct in order to setup MSI
+        */
+       xhci->quirks |= XHCI_PLAT;
 +
 +      if (pdata && pdata->usb3_fake_doorbell)
 +              xhci->quirks |= XHCI_FAKE_DOORBELL;