summaryrefslogtreecommitdiff
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorHongyu Xie <xiehongyu1@kylinos.cn>2025-06-27 17:41:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-10 16:05:10 +0200
commit195597e0beb3dc8803b91e3751f0111533b7f2f9 (patch)
tree101ae6e436075a4568552745e7e58b26f9a87999 /drivers/usb/host
parent8bfd11dae3fb3c202c831183d1849df0e8af4632 (diff)
downloadlinux-195597e0beb3dc8803b91e3751f0111533b7f2f9.tar.gz
linux-195597e0beb3dc8803b91e3751f0111533b7f2f9.tar.bz2
linux-195597e0beb3dc8803b91e3751f0111533b7f2f9.zip
xhci: Disable stream for xHC controller with XHCI_BROKEN_STREAMS
commit cd65ee81240e8bc3c3119b46db7f60c80864b90b upstream. Disable stream for platform xHC controller with broken stream. Fixes: 14aec589327a6 ("storage: accept some UAS devices if streams are unavailable") Cc: stable <stable@kernel.org> Signed-off-by: Hongyu Xie <xiehongyu1@kylinos.cn> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20250627144127.3889714-3-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/xhci-plat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 2379a67e34e1..3a9bdf916755 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -326,7 +326,8 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
}
usb3_hcd = xhci_get_usb3_hcd(xhci);
- if (usb3_hcd && HCC_MAX_PSA(xhci->hcc_params) >= 4)
+ if (usb3_hcd && HCC_MAX_PSA(xhci->hcc_params) >= 4 &&
+ !(xhci->quirks & XHCI_BROKEN_STREAMS))
usb3_hcd->can_do_streams = 1;
if (xhci->shared_hcd) {