]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Check that lane 1 is in CL0 before enabling lane bonding
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 22 Aug 2023 13:36:18 +0000 (16:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:05:36 +0000 (23:05 +0200)
commitd727b97f8f2e7da74b4ecd09eaaa22221be40122
tree86c13934815196da3d46392ae4da49e6eb735503
parent04c38bedd07c9b01d1903bede5a2360f559f4679
thunderbolt: Check that lane 1 is in CL0 before enabling lane bonding

commit a9fdf5f933a6f2b358fad0194b1287b67f6704b1 upstream.

Marek reported that when BlackMagic UltraStudio device is connected the
kernel repeatedly tries to enable lane bonding without success making
the device non-functional. It looks like the device does not have lane 1
connected at all so even though it is enabled we should not try to bond
the lanes. For this reason check that lane 1 is in fact CL0 (connected,
active) before attempting to bond the lanes.

Reported-by: Marek Ĺ anta <teslan223@gmail.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217737
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/switch.c