Rasmus Villemoes c11cedc876 autoboot: make sure watchdog device(s) are handled with keyed autoboot
Currently, AUTOBOOT_KEYED and its variant AUTOBOOT_ENCRYPTION are
broken when one has an external always-running watchdog device with a
timeout shorter than the configured boot delay (in my case, I have a
gpio-wdt one with a timeout of 1 second), because we fail to call
WATCHDOG_RESET() in the loops where we wait for the bootdelay to
elapse.

This is done implicitly in the !AUTOBOOT_KEYED case,
i.e. abortboot_single_key(), because that loop contains a
udelay(10000), and udelay() does a WATCHDOG_RESET().

To fix this, simply add similar udelay() calls in the other loops.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Stefan Roese <sr@denx.de>
2022-09-27 12:25:51 +02:00
..
2022-07-18 17:21:49 +02:00
2022-07-26 02:30:56 -06:00
2022-01-19 18:11:34 +01:00
2013-04-01 16:33:52 -04:00
2022-01-19 18:11:34 +01:00
2022-08-04 16:18:47 -04:00
2022-01-19 18:11:34 +01:00
2022-03-28 20:30:33 +02:00
2021-04-12 17:44:55 -04:00
2021-04-20 07:31:12 -04:00
2022-08-04 16:18:47 -04:00