mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 09:12:07 +00:00
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: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
35c9ab4fd6
commit
9e4f5b2af2
@ -405,6 +405,9 @@ int tb_switch_clx_disable(struct tb_switch *sw)
|
||||
if (!clx)
|
||||
return 0;
|
||||
|
||||
if (sw->is_unplugged)
|
||||
return clx;
|
||||
|
||||
up = tb_upstream_port(sw);
|
||||
down = tb_switch_downstream_port(sw);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user