summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/switch.c
diff options
context:
space:
mode:
authorGil Fine <gil.fine@linux.intel.com>2023-09-20 11:13:11 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-10-13 07:49:13 +0200
commitd80d926c5b6bcbcf7639b55caa38f3df7d978d0d (patch)
tree090e1cb1684fc9bcffe6afa31c035cdc2f2cc18c /drivers/thunderbolt/switch.c
parentthunderbolt: Use tb_tunnel_xxx() log macros in tb.c (diff)
downloadlinux-d80d926c5b6bcbcf7639b55caa38f3df7d978d0d.tar.xz
linux-d80d926c5b6bcbcf7639b55caa38f3df7d978d0d.zip
thunderbolt: Log NVM version of routers and retimers
This is useful when debugging possible issues. Signed-off-by: Gil Fine <gil.fine@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/switch.c')
-rw-r--r--drivers/thunderbolt/switch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c
index 37964a116076..d63ead24c349 100644
--- a/drivers/thunderbolt/switch.c
+++ b/drivers/thunderbolt/switch.c
@@ -372,6 +372,7 @@ static int tb_switch_nvm_add(struct tb_switch *sw)
ret = tb_nvm_add_active(nvm, nvm_read);
if (ret)
goto err_nvm;
+ tb_sw_dbg(sw, "NVM version %x.%x\n", nvm->major, nvm->minor);
}
if (!sw->no_nvm_upgrade) {