]> Git Repo - J-linux.git/commitdiff
thunderbolt: There are only 5 basic router registers in pre-USB4 routers
authorMika Westerberg <[email protected]>
Fri, 19 Apr 2024 05:17:58 +0000 (08:17 +0300)
committerMika Westerberg <[email protected]>
Wed, 24 Apr 2024 12:59:00 +0000 (15:59 +0300)
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]>
drivers/thunderbolt/debugfs.c

index e324cd899719371a1c0248b3e2ea0e75d9df6197..193e9dfc983b64647d2fa8ba811d76381f2242bd 100644 (file)
@@ -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)
This page took 0.049227 seconds and 4 git commands to generate.