]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
thunderbolt: Do not touch lane 1 adapter path config space
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 16 Dec 2022 14:28:05 +0000 (16:28 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 16 Jun 2023 06:53:27 +0000 (09:53 +0300)
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>
drivers/thunderbolt/switch.c

index 0c11caec7e8e8e1f583b31cf6a8cc699bf18fe1c..47961afdcc735d7517c1d3f69edd95a029da5eb1 100644 (file)
@@ -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))