summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/tb_regs.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2022-03-23 16:13:32 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-01-17 11:36:55 +0200
commite70a8f36987da50b9f443173f8800795f70266da (patch)
tree3e5fe311fe615d40b905ab5cafa041fd42d84d91 /drivers/thunderbolt/tb_regs.h
parent2426fdf77afb4d78316585531a4069905a5accc7 (diff)
downloadlinux-stable-e70a8f36987da50b9f443173f8800795f70266da.tar.gz
linux-stable-e70a8f36987da50b9f443173f8800795f70266da.tar.bz2
linux-stable-e70a8f36987da50b9f443173f8800795f70266da.zip
thunderbolt: Take CL states into account when waiting for link to come up
If CL states are enabled for the link it may be in these states too when reading the lane adapter state but it will enter CL0 as soon as there is traffic in the high-speed lanes. Upon discovery we want to make sure that is accounted as the link being up, otherwise we end up tearing down the topology with no good reason. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tb_regs.h')
-rw-r--r--drivers/thunderbolt/tb_regs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tb_regs.h b/drivers/thunderbolt/tb_regs.h
index 3c38b0cb8f74..f4a194cc0d63 100644
--- a/drivers/thunderbolt/tb_regs.h
+++ b/drivers/thunderbolt/tb_regs.h
@@ -50,6 +50,10 @@ enum tb_port_state {
TB_PORT_DISABLED = 0, /* tb_cap_phy.disable == 1 */
TB_PORT_CONNECTING = 1, /* retry */
TB_PORT_UP = 2,
+ TB_PORT_TX_CL0S = 3,
+ TB_PORT_RX_CL0S = 4,
+ TB_PORT_CL1 = 5,
+ TB_PORT_CL2 = 6,
TB_PORT_UNPLUGGED = 7,
};