]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:24:37 +0000 (07:24 +0100)
commit10d693ee8458420c777d44041d1ed6354240c63d
tree24677455246da9c0b21715c5a4b89cb2f5a54144
parent8ef5e4b12bb06c6957a7dd8342808053a6ab5c88
thunderbolt: Do not report errors if on-board retimers are found

commit 6778ab812e7bb6fcf0fc056d66ab93b23eec936d upstream.

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: b9cd2087420e ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/retimer.c