Commit 8145c435 authored by Mika Westerberg's avatar Mika Westerberg

thunderbolt: Initialize TMU again on resume

The TMU will be reset after router exits sleep so in order to
re-configure it upon resume make sure the structure is initialized again
based on the current hardware state.
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 81a2e3e4
...@@ -2533,6 +2533,10 @@ int tb_switch_resume(struct tb_switch *sw) ...@@ -2533,6 +2533,10 @@ int tb_switch_resume(struct tb_switch *sw)
if (err) if (err)
return err; return err;
err = tb_switch_tmu_init(sw);
if (err)
return err;
/* check for surviving downstream switches */ /* check for surviving downstream switches */
tb_switch_for_each_port(sw, port) { tb_switch_for_each_port(sw, port) {
if (!tb_port_has_remote(port) && !port->xdomain) if (!tb_port_has_remote(port) && !port->xdomain)
......
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