summaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci-tegra.c
diff options
context:
space:
mode:
authorHenry Lin <henryl@nvidia.com>2023-05-12 11:04:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-13 12:05:53 +0300
commit397376765249555800749d012b301609c62ae963 (patch)
treeb0006bb22bc5a5493909e63932df8719d935ae7b /drivers/usb/host/xhci-tegra.c
parent424e02931e2bad6f8c442fd3d548379123bf1b13 (diff)
downloadlinux-397376765249555800749d012b301609c62ae963.tar.xz
usb: xhci: tegra: enable stream protocol support
This commit enables stream transfer protocol for Tegra XHCI. Signed-off-by: Henry Lin <henryl@nvidia.com> Signed-off-by: Jim Lin <jilin@nvidia.com> Link: https://lore.kernel.org/r/20230512080423.27978-1-jilin@nvidia.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-tegra.c')
-rw-r--r--drivers/usb/host/xhci-tegra.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 8a9c7deb7686..393e2c8064bd 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -1828,6 +1828,9 @@ static int tegra_xusb_probe(struct platform_device *pdev)
goto remove_usb2;
}
+ if (HCC_MAX_PSA(xhci->hcc_params) >= 4)
+ xhci->shared_hcd->can_do_streams = 1;
+
err = usb_add_hcd(xhci->shared_hcd, tegra->xhci_irq, IRQF_SHARED);
if (err < 0) {
dev_err(&pdev->dev, "failed to add shared HCD: %d\n", err);