Skip to content

Commit ee22d52

Browse files
Gil Finewesteri
authored andcommitted
thunderbolt: Add two additional double words for adapters TMU for USB4 v2 routers
For USB4 v2 routers, the adapters's TMU capability has two additional double words. Include them in the debugfs register dump. Signed-off-by: Gil Fine <gil.fine@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
1 parent 6e19d48 commit ee22d52

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

drivers/thunderbolt/debugfs.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
#define PORT_CAP_LANE_LEN 3
2020
#define PORT_CAP_USB3_LEN 5
2121
#define PORT_CAP_DP_LEN 8
22-
#define PORT_CAP_TMU_LEN 8
22+
#define PORT_CAP_TMU_V1_LEN 8
23+
#define PORT_CAP_TMU_V2_LEN 10
2324
#define PORT_CAP_BASIC_LEN 9
2425
#define PORT_CAP_USB4_LEN 20
2526

@@ -1161,7 +1162,10 @@ static void port_cap_show(struct tb_port *port, struct seq_file *s,
11611162
break;
11621163

11631164
case TB_PORT_CAP_TIME1:
1164-
length = PORT_CAP_TMU_LEN;
1165+
if (usb4_switch_version(port->sw) < 2)
1166+
length = PORT_CAP_TMU_V1_LEN;
1167+
else
1168+
length = PORT_CAP_TMU_V2_LEN;
11651169
break;
11661170

11671171
case TB_PORT_CAP_POWER:

0 commit comments

Comments
 (0)