Skip to content

Commit a3ad3a9

Browse files
committed
thunderbolt: There are only 5 basic router registers in pre-USB4 routers
Intel pre-USB4 routers only have ROUTER_CS_0 up to ROUTER_CS_4 and it immediately follows the TMU router registers. Correct this accordingly. Reported-by: Rajaram Regupathy <[email protected]> Signed-off-by: Mika Westerberg <[email protected]>
1 parent d4d336f commit a3ad3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thunderbolt/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ static int switch_basic_regs_show(struct tb_switch *sw, struct seq_file *s)
13461346
if (tb_switch_is_usb4(sw))
13471347
dwords = ARRAY_SIZE(data);
13481348
else
1349-
dwords = 7;
1349+
dwords = 5;
13501350

13511351
ret = tb_sw_read(sw, data, TB_CFG_SWITCH, 0, dwords);
13521352
if (ret)

0 commit comments

Comments
 (0)