]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootdev: avoid infinite probe loop
authorCaleb Connolly <caleb.connolly@linaro.org>
Thu, 4 Jan 2024 16:03:35 +0000 (16:03 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jan 2024 17:18:48 +0000 (12:18 -0500)
commit9d92c418acfb7576e12e2bd53fed294bb9543724
treef25eaefcd963ddc0e0ab9260e392944328cfb29c
parentf7cca7ccc5117eaafcc2bde91ad1bed6fee7cfc3
bootdev: avoid infinite probe loop

Sometimes, when only one bootdev is available, and it fails to probe, we
end up in an infinite loop calling probe() on the same device over and
over. With only debug level log output.

Break the loop if we fail to probe the same device twice in a row, and
promote the probe failure message to log_warning().

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
boot/bootdev-uclass.c