Skip to content

Commit cd65ee8

Browse files
Hongyu Xiegregkh
authored andcommitted
xhci: Disable stream for xHC controller with XHCI_BROKEN_STREAMS
Disable stream for platform xHC controller with broken stream. Fixes: 14aec58 ("storage: accept some UAS devices if streams are unavailable") Cc: stable <[email protected]> Signed-off-by: Hongyu Xie <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cbc889a commit cd65ee8

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
@@ -328,7 +328,8 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
328328
}
329329

330330
usb3_hcd = xhci_get_usb3_hcd(xhci);
331-
if (usb3_hcd && HCC_MAX_PSA(xhci->hcc_params) >= 4)
331+
if (usb3_hcd && HCC_MAX_PSA(xhci->hcc_params) >= 4 &&
332+
!(xhci->quirks & XHCI_BROKEN_STREAMS))
332333
usb3_hcd->can_do_streams = 1;
333334

334335
if (xhci->shared_hcd) {

0 commit comments

Comments
 (0)