From: Gil Fine Date: Wed, 6 May 2026 12:37:08 +0000 (+0300) Subject: thunderbolt: Increase timeout for Configuration Ready bit X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba2cc385110129d03cd0f18a1b5969a430b67a18;p=thirdparty%2Fkernel%2Flinux.git thunderbolt: Increase timeout for Configuration Ready bit After setting the Configuration Valid bit (ROUTER_CS_5.CV), the USB4 Connection Manager guide specifies a 500 ms timeout for the router to set the Configuration Ready bit (ROUTER_CS_6.CR). The current timeout is shorter than specified. While there, fix the kernel-doc typo. Increase the timeout to match the CM guide recommendation. Signed-off-by: Gil Fine Signed-off-by: Mika Westerberg --- diff --git a/drivers/thunderbolt/usb4.c b/drivers/thunderbolt/usb4.c index 54f4f5fa3c5a..5fd4fe070f25 100644 --- a/drivers/thunderbolt/usb4.c +++ b/drivers/thunderbolt/usb4.c @@ -309,7 +309,7 @@ int usb4_switch_setup(struct tb_switch *sw) * Sets configuration valid bit for the router. Must be called before * any tunnels can be set through the router and after * usb4_switch_setup() has been called. Can be called to host and device - * routers (does nothing for the latter). + * routers (does nothing for the former). * * Return: %0 on success, negative errno otherwise. */ @@ -332,7 +332,7 @@ int usb4_switch_configuration_valid(struct tb_switch *sw) return ret; return tb_switch_wait_for_bit(sw, ROUTER_CS_6, ROUTER_CS_6_CR, - ROUTER_CS_6_CR, 50); + ROUTER_CS_6_CR, 500); } /**