Skip to content

Commit 4271642

Browse files
Sanjay R Mehtawesteri
authored andcommitted
thunderbolt: Fix port linking by checking all adapters
In tb_switch_default_link_ports(), while linking of ports, only odd-numbered ports (1,3,5..) are considered and even-numbered ports are not considered. AMD host router has lane adapters at 2 and 3 and link ports at adapter 2 is not considered due to which lane bonding gets disabled. Hence added a fix such that all ports are considered during linking of ports. Signed-off-by: Basavaraj Natikar <[email protected]> Signed-off-by: Sanjay R Mehta <[email protected]> Signed-off-by: Mika Westerberg <[email protected]>
1 parent fb7a89a commit 4271642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thunderbolt/switch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,7 @@ static void tb_switch_default_link_ports(struct tb_switch *sw)
24662466
{
24672467
int i;
24682468

2469-
for (i = 1; i <= sw->config.max_port_number; i += 2) {
2469+
for (i = 1; i <= sw->config.max_port_number; i++) {
24702470
struct tb_port *port = &sw->ports[i];
24712471
struct tb_port *subordinate;
24722472

0 commit comments

Comments
 (0)