Skip to content

Commit

Permalink
thunderbolt: Do not touch lane 1 adapter path config space
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
westeri committed Jun 16, 2023
1 parent 4796efd commit 2ad3e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thunderbolt/switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2ad3e13

Please sign in to comment.