mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-05 05:15:23 +02: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