diff options
author | Peter Chen <peter.chen@nxp.com> | 2018-09-20 12:13:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-28 09:04:45 -0400 |
commit | c94d41e9dd1ba3f95ca958ff04adeb64e3d6a9be (patch) | |
tree | fca07beedc278545928d42d7bcaac7148e545ba3 | |
parent | e995dccadaf99e216cf5410463941d978c455c58 (diff) |
usb: host: xhci-plat: add platform TPL support
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.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/host/xhci-plat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 94e939249b2b..32b5574ad5c5 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/usb/phy.h> | 18 | #include <linux/usb/phy.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/acpi.h> | 20 | #include <linux/acpi.h> |
21 | #include <linux/usb/of.h> | ||
21 | 22 | ||
22 | #include "xhci.h" | 23 | #include "xhci.h" |
23 | #include "xhci-plat.h" | 24 | #include "xhci-plat.h" |
@@ -305,6 +306,8 @@ static int xhci_plat_probe(struct platform_device *pdev) | |||
305 | hcd->skip_phy_initialization = 1; | 306 | hcd->skip_phy_initialization = 1; |
306 | } | 307 | } |
307 | 308 | ||
309 | hcd->tpl_support = of_usb_host_tpl_support(sysdev->of_node); | ||
310 | xhci->shared_hcd->tpl_support = hcd->tpl_support; | ||
308 | ret = usb_add_hcd(hcd, irq, IRQF_SHARED); | 311 | ret = usb_add_hcd(hcd, irq, IRQF_SHARED); |
309 | if (ret) | 312 | if (ret) |
310 | goto disable_usb_phy; | 313 | goto disable_usb_phy; |