From 82fae3cf35623aeb16fc14aca44a1686182f8729 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 22 Mar 2023 14:50:55 +0100 Subject: 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 --- drivers/usb/host/xhci.h | 6 ++---- 1 file 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) -- cgit v1.2.1