diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2024-04-19 08:17:58 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2024-04-24 15:59:00 +0300 |
commit | a3ad3a90e0a722d9a50c01cfb40e6cfbb975e529 (patch) | |
tree | d04b788106924294da298d48296c467aba973f9f | |
parent | d4d336f8c4d5a4609217ac83116ba3d06b7e918c (diff) | |
download | linux-a3ad3a90e0a722d9a50c01cfb40e6cfbb975e529.tar.xz |
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 <rajaram.regupathy@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
-rw-r--r-- | drivers/thunderbolt/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/debugfs.c b/drivers/thunderbolt/debugfs.c index e324cd899719..193e9dfc983b 100644 --- a/drivers/thunderbolt/debugfs.c +++ b/drivers/thunderbolt/debugfs.c @@ -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) |