Skip to contentSkip to conversation

thunderbolt: Fix rollback in tb_port_lane_bonding_enable for lane 1

PATCH Applied Mohammad Rahimi 2 participants 2 messages Jan 14, 2024 – Jan 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thunderbolt: Fix rollback in tb_port_lane_bonding_enable for lane 1

If enabling lane bonding on lane 1 of a USB4 port results in an error, the rollback should set TB_LINK_WIDTH_SINGLE for both lanes.

---
 drivers/thunderbolt/switch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thunderbolt/switch.c +1 -1
index 44e9b09de47a..af5e4a650a29 100644
@@ -1136,7 +1136,7 @@ int tb_port_lane_bonding_enable(struct tb_port *port)
 		ret = tb_port_set_link_width(port->dual_link_port,
 					     TB_LINK_WIDTH_DUAL);
 		if (ret)
-			goto err_lane0;
+			goto err_lane1;
 	}
 
 	/*
Signature · 1 line
2.39.2
#1 lore raw
Quoted 4 lines · Mohammad Rahimi

If enabling lane bonding on lane 1 of a USB4 port results in an error, the rollback should set TB_LINK_WIDTH_SINGLE for both lanes.

Applied to thunderbolt.git/next, thanks!