thunderbolt: Wait for the lanes to actually bond
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 22 Mar 2021 14:54:54 +0000 (16:54 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Jun 2021 07:48:59 +0000 (10:48 +0300)
commite7051beab8393dc614f7ea3969aa03bc490db1d6
tree0bdfb38a1b95f4af72306eb075789978b2bb353b
parent02c5e7c2db2bdfe227dd3e7f6febd732ccec5440
thunderbolt: Wait for the lanes to actually bond

It may take some time until the two lanes enter bonded state so poll for
the link width to match what is expected before going forward. This ensures
the link is in expected state before we start establishing paths through
it.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/xdomain.c