Skip to content

Commit 195597e

Browse files
Hongyu Xiegregkh
authored andcommitted
xhci: Disable stream for xHC controller with XHCI_BROKEN_STREAMS
commit cd65ee8 upstream. Disable stream for platform xHC controller with broken stream. Fixes: 14aec58 ("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>
1 parent 8bfd11d commit 195597e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/host/xhci-plat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
326326
}
327327

328328
usb3_hcd = xhci_get_usb3_hcd(xhci);
329-
if (usb3_hcd && HCC_MAX_PSA(xhci->hcc_params) >= 4)
329+
if (usb3_hcd && HCC_MAX_PSA(xhci->hcc_params) >= 4 &&
330+
!(xhci->quirks & XHCI_BROKEN_STREAMS))
330331
usb3_hcd->can_do_streams = 1;
331332

332333
if (xhci->shared_hcd) {

0 commit comments

Comments
 (0)