aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/thunderbolt
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-03-27 17:20:31 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2020-09-03 12:06:41 +0300
commit8145c4350e1303108a86991d3792eb51e5fdf195 (patch)
tree715a2ff3c6e4e25be5940c9b2fadea172daad077 /drivers/thunderbolt
parentthunderbolt: Tear down DP tunnels when suspending (diff)
downloadwireguard-linux-8145c4350e1303108a86991d3792eb51e5fdf195.tar.xz
wireguard-linux-8145c4350e1303108a86991d3792eb51e5fdf195.zip
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: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r--drivers/thunderbolt/switch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c
index 55ed8bcc60c3..0d4e4b7902c6 100644
--- a/drivers/thunderbolt/switch.c
+++ b/drivers/thunderbolt/switch.c
@@ -2533,6 +2533,10 @@ int tb_switch_resume(struct tb_switch *sw)
if (err)
return err;
+ err = tb_switch_tmu_init(sw);
+ if (err)
+ return err;
+
/* check for surviving downstream switches */
tb_switch_for_each_port(sw, port) {
if (!tb_port_has_remote(port) && !port->xdomain)