diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-03-27 17:20:31 +0200 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-09-03 12:06:41 +0300 |
commit | 8145c4350e1303108a86991d3792eb51e5fdf195 (patch) | |
tree | 715a2ff3c6e4e25be5940c9b2fadea172daad077 /drivers/thunderbolt | |
parent | 81a2e3e49f1f89cfe30d354b3a5fba27e2e59d91 (diff) | |
download | linux-stable-8145c4350e1303108a86991d3792eb51e5fdf195.tar.gz linux-stable-8145c4350e1303108a86991d3792eb51e5fdf195.tar.bz2 linux-stable-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.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) |