Skip to content

Commit a3dc6d8

Browse files
committed
thunderbolt: Correct trace output of firmware connection manager packets
These are special packets that the drivers sends directly to the firmware connection manager (ICM). These do not have route string because they are always consumed by the firmware connection manager running on the host router, so hard-code that in the output accordingly. Signed-off-by: Mika Westerberg <[email protected]>
1 parent 2a0ed2d commit a3dc6d8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

drivers/thunderbolt/trace.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,23 +87,32 @@ static inline const char *show_data(struct trace_seq *p, u8 type,
8787
const char *prefix = "";
8888
int i;
8989

90-
show_route(p, data);
91-
9290
switch (type) {
9391
case TB_CFG_PKG_READ:
9492
case TB_CFG_PKG_WRITE:
93+
show_route(p, data);
9594
show_data_read_write(p, data);
9695
break;
9796

9897
case TB_CFG_PKG_ERROR:
98+
show_route(p, data);
9999
show_data_error(p, data);
100100
break;
101101

102102
case TB_CFG_PKG_EVENT:
103+
show_route(p, data);
103104
show_data_event(p, data);
104105
break;
105106

107+
case TB_CFG_PKG_ICM_EVENT:
108+
case TB_CFG_PKG_ICM_CMD:
109+
case TB_CFG_PKG_ICM_RESP:
110+
/* ICM messages always target the host router */
111+
trace_seq_puts(p, "route=0, ");
112+
break;
113+
106114
default:
115+
show_route(p, data);
107116
break;
108117
}
109118

0 commit comments

Comments
 (0)