thunderbolt: Do not report errors if on-board retimers are found
authorUtkarsh Patel <utkarsh.h.patel@intel.com>
Fri, 23 Dec 2022 04:22:46 +0000 (20:22 -0800)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 27 Dec 2022 08:39:52 +0000 (10:39 +0200)
commitc28f3d80383571d3630df1a0e89500d23e855924
treee1397af9884e6304cf56376de14e98be44fae952
parent1b929c02afd37871d5afb9d498426f83432e71c2
thunderbolt: Do not report errors if on-board retimers are found

Currently we return an error even if on-board retimers are found and
that's not expected. Fix this to return an error only if there was one
and 0 otherwise.

Fixes: 1e56c88adecc ("thunderbolt: Runtime resume USB4 port when retimers are scanned")
Cc: stable@vger.kernel.org
Signed-off-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/retimer.c