diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-03-27 16:20:31 +0100 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-09-03 11:06:41 +0200 |
commit | 8145c4350e1303108a86991d3792eb51e5fdf195 (patch) | |
tree | 715a2ff3c6e4e25be5940c9b2fadea172daad077 /drivers/thunderbolt/switch.c | |
parent | thunderbolt: Tear down DP tunnels when suspending (diff) | |
download | linux-8145c4350e1303108a86991d3792eb51e5fdf195.tar.xz 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/switch.c')
-rw-r--r-- | drivers/thunderbolt/switch.c | 4 |
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) |