diff options
author | Mohammad Rahimi <rahimi.mhmmd@gmail.com> | 2024-01-14 15:04:20 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2024-01-22 14:34:19 +0300 |
commit | e8f1297ba31f9a36969c98e41663c508b8fd7fdf (patch) | |
tree | 1e3e2a91049a82751b59b93ac063aac8e099029e /drivers/thunderbolt | |
parent | 7ebe52f3e7bcb57eb29b47fcbd23b4a5fed6b302 (diff) | |
download | linux-e8f1297ba31f9a36969c98e41663c508b8fd7fdf.tar.xz |
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.
Signed-off-by: Mohammad Rahimi <rahimi.mhmmd@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r-- | drivers/thunderbolt/switch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c index e7bda8729c7e..bf1daf5165a4 100644 --- a/drivers/thunderbolt/switch.c +++ b/drivers/thunderbolt/switch.c @@ -1127,7 +1127,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; } /* |