mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
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: 1e56c88ade
("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>
This commit is contained in:
parent
1b929c02af
commit
c28f3d8038
@ -471,10 +471,9 @@ int tb_retimer_scan(struct tb_port *port, bool add)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!last_idx) {
|
ret = 0;
|
||||||
ret = 0;
|
if (!last_idx)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
|
||||||
|
|
||||||
/* Add on-board retimers if they do not exist already */
|
/* Add on-board retimers if they do not exist already */
|
||||||
for (i = 1; i <= last_idx; i++) {
|
for (i = 1; i <= last_idx; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user