Skip to content

Commit

Permalink
thunderbolt: There are only 5 basic router registers in pre-USB4 routers
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
westeri committed Apr 24, 2024
1 parent d4d336f commit a3ad3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thunderbolt/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ static int switch_basic_regs_show(struct tb_switch *sw, struct seq_file *s)
if (tb_switch_is_usb4(sw))
dwords = ARRAY_SIZE(data);
else
dwords = 7;
dwords = 5;

ret = tb_sw_read(sw, data, TB_CFG_SWITCH, 0, dwords);
if (ret)
Expand Down

0 comments on commit a3ad3a9

Please sign in to comment.