summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/tb.c
diff options
context:
space:
mode:
authorGil Fine <gil.fine@linux.intel.com>2023-08-24 14:19:41 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-10-13 07:49:13 +0200
commit6b8ac54f31f985d3abb0b4212187838dd8ea4227 (patch)
treeaa1dc3d5d62ddde3eae9cd4e8f3198e0cc1436e0 /drivers/thunderbolt/tb.c
parentthunderbolt: Check for unplugged router in tb_switch_clx_disable() (diff)
downloadlinux-6b8ac54f31f985d3abb0b4212187838dd8ea4227.tar.xz
linux-6b8ac54f31f985d3abb0b4212187838dd8ea4227.zip
thunderbolt: Fix debug log when DisplayPort adapter not available for pairing
Fix debug log when looking for a DisplayPort adapter pair of DP IN and DP OUT. In case of no DP adapter available, log the type of the DP adapter that is not available. Signed-off-by: Gil Fine <gil.fine@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tb.c')
-rw-r--r--drivers/thunderbolt/tb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c
index dd0a1ef8cf12..124dba9f2416 100644
--- a/drivers/thunderbolt/tb.c
+++ b/drivers/thunderbolt/tb.c
@@ -1311,13 +1311,12 @@ static void tb_tunnel_dp(struct tb *tb)
continue;
}
- tb_port_dbg(port, "DP IN available\n");
+ in = port;
+ tb_port_dbg(in, "DP IN available\n");
out = tb_find_dp_out(tb, port);
- if (out) {
- in = port;
+ if (out)
break;
- }
}
if (!in) {