Commit 9e4f5b2a authored by Mika Westerberg's avatar Mika Westerberg

thunderbolt: Check for unplugged router in tb_switch_clx_disable()

There is no point disabling CL states if the router is unplugged so in
that case return early.
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 35c9ab4f
...@@ -405,6 +405,9 @@ int tb_switch_clx_disable(struct tb_switch *sw) ...@@ -405,6 +405,9 @@ int tb_switch_clx_disable(struct tb_switch *sw)
if (!clx) if (!clx)
return 0; return 0;
if (sw->is_unplugged)
return clx;
up = tb_upstream_port(sw); up = tb_upstream_port(sw);
down = tb_switch_downstream_port(sw); down = tb_switch_downstream_port(sw);
......
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