From: Mika Westerberg Date: Fri, 27 Mar 2020 15:20:31 +0000 (+0200) Subject: thunderbolt: Initialize TMU again on resume X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8145c4350e1303108a86991d3792eb51e5fdf195;p=linux.git 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 --- diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c index 55ed8bcc60c3a..0d4e4b7902c60 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)