summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-03-22 14:50:55 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-03-24 15:16:10 +0100
commit82fae3cf35623aeb16fc14aca44a1686182f8729 (patch)
treef065ee9ac04bdd67288e09eaab0c275fc92becfa /drivers
parent7181196630a9afd723c2924d5a134f072d983d77 (diff)
downloadbarebox-82fae3cf35623aeb16fc14aca44a1686182f8729.tar.gz
barebox-82fae3cf35623aeb16fc14aca44a1686182f8729.tar.xz
usb: xhci-hcd: Give it some more time to stop
On a RK3568 SoC with DWC3 controller it takes about 17us for the controller to halt. Increase the timeout accordingly to avoid warning messages. While at it, remove the duplicate definition of XHCI_MAX_HALT_USEC. Link: https://lore.barebox.org/20230322135055.4093677-1-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/xhci.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index a6a0483245..5c72f62402 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -30,8 +30,8 @@
/* Section 5.3.3 - MaxPorts */
#define MAX_HC_PORTS 255
-/* Up to 16 ms to halt an HC */
-#define XHCI_MAX_HALT_USEC (16*1000)
+/* Up to 32 ms to halt an HC */
+#define XHCI_MAX_HALT_USEC (32*1000)
#define XHCI_MAX_RESET_USEC (250*1000)
@@ -1134,8 +1134,6 @@ void xhci_hcd_stop(int index);
/*************************************************************
EXTENDED CAPABILITY DEFINITIONS
*************************************************************/
-/* Up to 16 ms to halt an HC */
-#define XHCI_MAX_HALT_USEC (16*1000)
/* HC not running - set to 1 when run/stop bit is cleared. */
#define XHCI_STS_HALT (1 << 0)