mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
thunderbolt: Set lane bonding bit only for downstream port
commit 24d85bb3be upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f1a0e42f66
commit
e9c6267185
|
|
@ -1082,7 +1082,7 @@ int tb_port_lane_bonding_enable(struct tb_port *port)
|
|||
* Only set bonding if the link was not already bonded. This
|
||||
* avoids the lane adapter to re-enter bonding state.
|
||||
*/
|
||||
if (width == TB_LINK_WIDTH_SINGLE) {
|
||||
if (width == TB_LINK_WIDTH_SINGLE && !tb_is_upstream_port(port)) {
|
||||
ret = tb_port_set_lane_bonding(port, true);
|
||||
if (ret)
|
||||
goto err_lane1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user