Skip to contentSkip to conversation

usb: host: xhci-plat: add platform TPL support

PATCH New Mathias Nyman 1 participant 1 message Sep 13, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: host: xhci-plat: add platform TPL support

Quoted 27 lines · Peter Chen
Quoted 26 lines · Peter Chen

The TPL support is used to identify targeted devices during EH2.0 and EH3.0 certification test, the user can add "tpl-support" at dts to enable this feature.

---
  drivers/usb/host/xhci-plat.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/usb/host/xhci-plat.c +1 -0
index c1b22fc64e38..270976cf4156 100644
@@ -18,6 +18,7 @@
  #include <linux/usb/phy.h>
  #include <linux/slab.h>
  #include <linux/acpi.h>
+#include <linux/usb/of.h>
 
  #include "xhci.h"
  #include "xhci-plat.h"
@@ -299,6 +300,8 @@ static int xhci_plat_probe(struct platform_device *pdev)
                 hcd->skip_phy_initialization = 1;
         }
 
Quoted 11 lines
Quoted 8 lines
drivers/usb/host/xhci-plat.c +2 -1
+       hcd->tpl_support = of_usb_host_tpl_support(sysdev->of_node);
+       xhci->shared_hcd->tpl_support = hcd->tpl_support;
         ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
         if (ret)
                 goto disable_usb_phy;
--

2.14.1

Ping...

Thanks, adding to queue

-Mathias