[PATCH] common, autoboot: sync functionality with Kconfig description

add back again special case: -2 autoboot with no delay and no check for abort
as described in Kconfig option, see common/Kconfig help text for option BOOTDELAY.
Signed-off-by: Heiko Schocher hs@denx.de --- https://travis-ci.org/github/hsdenx/u-boot-test/builds/733562410
common/autoboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/autoboot.c b/common/autoboot.c index 6d78716a26..74f97a0513 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -363,7 +363,8 @@ void autoboot_command(const char *s) { debug("### main_loop: bootcmd="%s"\n", s ? s : "<UNDEFINED>");
- if (stored_bootdelay != -1 && s && !abortboot(stored_bootdelay)) { + if (s && (stored_bootdelay == -2 || + (stored_bootdelay != -1 && !abortboot(stored_bootdelay)))) { bool lock; int prev;

On Wed, Oct 07, 2020 at 08:06:54AM +0200, Heiko Schocher wrote:
add back again special case: -2 autoboot with no delay and no check for abort
as described in Kconfig option, see common/Kconfig help text for option BOOTDELAY.
Signed-off-by: Heiko Schocher hs@denx.de
Reviewed-by: Tom Rini trini@konsulko.com

Hi Heiko,
On Fri, 9 Oct 2020 at 07:21, Tom Rini trini@konsulko.com wrote:
On Wed, Oct 07, 2020 at 08:06:54AM +0200, Heiko Schocher wrote:
add back again special case: -2 autoboot with no delay and no check for abort
as described in Kconfig option, see common/Kconfig help text for option BOOTDELAY.
Signed-off-by: Heiko Schocher hs@denx.de
Reviewed-by: Tom Rini trini@konsulko.com
Reviewed-by: Simon Glass sjg@chromium.org

On Wed, Oct 07, 2020 at 08:06:54AM +0200, Heiko Schocher wrote:
add back again special case: -2 autoboot with no delay and no check for abort
as described in Kconfig option, see common/Kconfig help text for option BOOTDELAY.
Signed-off-by: Heiko Schocher hs@denx.de Reviewed-by: Tom Rini trini@konsulko.com Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot/master, thanks!
participants (3)
-
Heiko Schocher
-
Simon Glass
-
Tom Rini