thunderbolt: No need to loop over all retimers if access fails
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 5 Apr 2024 04:47:40 +0000 (07:47 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 23 Apr 2024 05:12:09 +0000 (08:12 +0300)
commitd4d336f8c4d5a4609217ac83116ba3d06b7e918c
tree4c3667f1a64354b72312145df2d406d7273a8b7f
parentc6ca1ac9f4722c6aa940d61baa2416624472b7f0
thunderbolt: No need to loop over all retimers if access fails

When we read the NVM authentication status or unsetting the inbound SBTX
there is no point to continue the loop after first access to a retimer
fails because there won't be any more retimers after this anyway so bail
out from the loops early.

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