Skip to content

Commit 31f87f7

Browse files
superm1westeri
authored andcommitted
thunderbolt: Explicitly reset plug events delay back to USB4 spec value
If any software has interacted with the USB4 registers before the Linux USB4 CM runs, it may have modified the plug events delay. It has been observed that if this value too large, it's possible that hotplugged devices will negotiate a fallback mode instead in Linux. To prevent this, explicitly align the plug events delay with the USB4 spec value of 10ms. Cc: [email protected] Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Mika Westerberg <[email protected]>
1 parent 521a547 commit 31f87f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/thunderbolt/switch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,6 +2413,7 @@ int tb_switch_configure(struct tb_switch *sw)
24132413
* additional capabilities.
24142414
*/
24152415
sw->config.cmuv = USB4_VERSION_1_0;
2416+
sw->config.plug_events_delay = 0xa;
24162417

24172418
/* Enumerate the switch */
24182419
ret = tb_sw_write(sw, (u32 *)&sw->config + 1, TB_CFG_SWITCH,

0 commit comments

Comments
 (0)