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>
This commit is contained in:
Peter Chen 2018-09-20 19:13:36 +03:00 коммит произвёл Greg Kroah-Hartman
Родитель e995dccada
Коммит c94d41e9dd
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -18,6 +18,7 @@
#include <linux/usb/phy.h> #include <linux/usb/phy.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/acpi.h> #include <linux/acpi.h>
#include <linux/usb/of.h>
#include "xhci.h" #include "xhci.h"
#include "xhci-plat.h" #include "xhci-plat.h"
@ -305,6 +306,8 @@ static int xhci_plat_probe(struct platform_device *pdev)
hcd->skip_phy_initialization = 1; hcd->skip_phy_initialization = 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); ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
if (ret) if (ret)
goto disable_usb_phy; goto disable_usb_phy;