summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2022-12-16 16:28:05 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-06-16 09:53:27 +0300
commit2ad3e1314cafad9a8edbefed2b19d2a101cdb4fc (patch)
tree984dcbf28d4835e161f1b4cffb527a5ea1e691a0 /drivers/thunderbolt
parent4796efdd16a8066919a3ff479e0bbc14bac816ff (diff)
downloadlinux-stable-2ad3e1314cafad9a8edbefed2b19d2a101cdb4fc.tar.gz
linux-stable-2ad3e1314cafad9a8edbefed2b19d2a101cdb4fc.tar.bz2
linux-stable-2ad3e1314cafad9a8edbefed2b19d2a101cdb4fc.zip
thunderbolt: Do not touch lane 1 adapter path config space
It is not required to be implemented at all because USB4 does not use lane 1 for tunneling except when aggregated with lane 0. For this reason do not try to read the path config space of USB4 lane 1 adapters. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r--drivers/thunderbolt/switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c
index 0c11caec7e8e..47961afdcc73 100644
--- a/drivers/thunderbolt/switch.c
+++ b/drivers/thunderbolt/switch.c
@@ -723,7 +723,7 @@ static int tb_init_port(struct tb_port *port)
* can be read from the path config space. Legacy
* devices we use hard-coded value.
*/
- if (tb_switch_is_usb4(port->sw)) {
+ if (port->cap_usb4) {
struct tb_regs_hop hop;
if (!tb_port_read(port, &hop, TB_CFG_HOPS, 0, 2))