46bf4695d7
There are some important platform drivers that Valve has not upstreamed, that are basically required for this device to operate well. I picked those patches from the kernel tree they released for 6.5, and rebased them onto 6.8.
30 lines
962 B
Diff
30 lines
962 B
Diff
From 770e26e1816b0a1a3013c26d1dc1b1da7cff9dbc Mon Sep 17 00:00:00 2001
|
|
From: Andrey Smirnov <andrew.smirnov@gmail.com>
|
|
Date: Tue, 18 Jan 2022 08:44:34 -0800
|
|
Subject: [PATCH 17/21] usb: dwc3: Bump USB gadget wakeup timeout
|
|
|
|
Seems to be necessary to avoid timouts when switching host/gadged on
|
|
Steam Deck.
|
|
|
|
(cherry picked from commit b69aafb85c7794a729e68e92214e539e7e820192)
|
|
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
|
|
---
|
|
drivers/usb/dwc3/gadget.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
|
|
index 28f49400f3e8..93f7d0290037 100644
|
|
--- a/drivers/usb/dwc3/gadget.c
|
|
+++ b/drivers/usb/dwc3/gadget.c
|
|
@@ -2382,7 +2382,7 @@ static int __dwc3_gadget_wakeup(struct dwc3 *dwc, bool async)
|
|
return 0;
|
|
|
|
/* poll until Link State changes to ON */
|
|
- retries = 20000;
|
|
+ retries = 2000000;
|
|
|
|
while (retries--) {
|
|
reg = dwc3_readl(dwc->regs, DWC3_DSTS);
|
|
--
|
|
2.44.0
|
|
|