Skip to content

Commit 24d85bb

Browse files
Gil Finewesteri
authored andcommitted
thunderbolt: Set lane bonding bit only for downstream port
Fix the lane bonding procedure to follow the steps described in USB4 Connection Manager guide. Hence, set the lane bonding bit only for downstream port. This is needed for certain ASMedia device, otherwise lane bonding fails and the device disconnects. Cc: stable@vger.kernel.org Signed-off-by: Gil Fine <gil.fine@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
1 parent b85ea95 commit 24d85bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/thunderbolt/switch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ int tb_port_lane_bonding_enable(struct tb_port *port)
11431143
* Only set bonding if the link was not already bonded. This
11441144
* avoids the lane adapter to re-enter bonding state.
11451145
*/
1146-
if (width == TB_LINK_WIDTH_SINGLE) {
1146+
if (width == TB_LINK_WIDTH_SINGLE && !tb_is_upstream_port(port)) {
11471147
ret = tb_port_set_lane_bonding(port, true);
11481148
if (ret)
11491149
goto err_lane1;

0 commit comments

Comments
 (0)