]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thunderbolt: Fix lane bonding log when bonding not possible
authorGil Fine <gil.fine@linux.intel.com>
Wed, 6 May 2026 12:37:04 +0000 (15:37 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 20 May 2026 09:54:34 +0000 (11:54 +0200)
commit0ab47718345dc58a6e2ff4c1c23a9026a2cf1310
treeded71e425984e51ec19b4f2fad44220325fc6e6c
parent95c4379e37a0abea72dfd389cfe2c54452523690
thunderbolt: Fix lane bonding log when bonding not possible

Currently if lane bonding is not possible or not supported, we continue
and read the updated number of Total Buffers from lane adapters unnecessarily
and incorrectly log the bonding as successful.

Fix this by bailing out early when bonding is not possible, avoiding
the unnecessary read and the misleading log message.

Signed-off-by: Gil Fine <gil.fine@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c