mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
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 <gil.fine@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
062023c436
commit
ba2cc38511
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user