[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250618074648.109879-1-xiehongyu1@kylinos.cn>
Date: Wed, 18 Jun 2025 15:46:48 +0800
From: xiehongyu1@...inos.cn
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org,
mathias.nyman@...el.com,
oneukum@...e.de,
Hongyu Xie <xiehongyu1@...inos.cn>,
stable@...r.kernel.org
Subject: [PATCH v2] xhci: Disable stream for xHC controller with XHCI_BROKEN_STREAMS
From: Hongyu Xie <xiehongyu1@...inos.cn>
Disable stream for platform xHC controller with broken stream.
Fixes: 14aec589327a6 ("storage: accept some UAS devices if streams are unavailable")
Cc: stable@...r.kernel.org # 5.4
Signed-off-by: Hongyu Xie <xiehongyu1@...inos.cn>
---
drivers/usb/host/xhci-plat.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 6dab142e72789..c79d5ed48a08b 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -328,7 +328,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) {
--
2.25.1
Powered by blists - more mailing lists