Commit d80d926c authored by Gil Fine's avatar Gil Fine Committed by Mika Westerberg

thunderbolt: Log NVM version of routers and retimers

This is useful when debugging possible issues.
Signed-off-by: default avatarGil Fine <gil.fine@linux.intel.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 34c5def5
...@@ -94,6 +94,7 @@ static int tb_retimer_nvm_add(struct tb_retimer *rt) ...@@ -94,6 +94,7 @@ static int tb_retimer_nvm_add(struct tb_retimer *rt)
goto err_nvm; goto err_nvm;
rt->nvm = nvm; rt->nvm = nvm;
dev_dbg(&rt->dev, "NVM version %x.%x\n", nvm->major, nvm->minor);
return 0; return 0;
err_nvm: err_nvm:
......
...@@ -372,6 +372,7 @@ static int tb_switch_nvm_add(struct tb_switch *sw) ...@@ -372,6 +372,7 @@ static int tb_switch_nvm_add(struct tb_switch *sw)
ret = tb_nvm_add_active(nvm, nvm_read); ret = tb_nvm_add_active(nvm, nvm_read);
if (ret) if (ret)
goto err_nvm; goto err_nvm;
tb_sw_dbg(sw, "NVM version %x.%x\n", nvm->major, nvm->minor);
} }
if (!sw->no_nvm_upgrade) { if (!sw->no_nvm_upgrade) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment