thunderbolt: Set lane bonding bit only for downstream port
authorGil Fine <gil.fine@linux.intel.com>
Tue, 7 Nov 2023 10:22:40 +0000 (12:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Dec 2023 06:33:06 +0000 (07:33 +0100)
commite9c62671852f7eea68c9a834c6ded9bca8a66267
treef2a9ff311828fb1bc657ab50f3eda6acad4d1440
parentf1a0e42f6651b86b02fdb1881ec69eeba5cf155c
thunderbolt: Set lane bonding bit only for downstream port

commit 24d85bb3be373b5831699bddf698b392bd2b904d 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>
drivers/thunderbolt/switch.c