mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
sandbox: fix sandbox_wdt_expire_now()
With CONFIG_SYSRESET_WATCHDOG=y the sandbox can use a watchdog based system reset. To make this work calling sandbox_wdt_expire_now() must lead to a reset. With this change we can test the development suggested in [PATCH 0/4] Improved sysreset/watchdog uclass integration https://lists.denx.de/pipermail/u-boot/2021-August/458656.html Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ace5bb3eca
commit
592e2e5929
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ static int sandbox_wdt_reset(struct udevice *dev)
|
|||
static int sandbox_wdt_expire_now(struct udevice *dev, ulong flags)
|
||||
{
|
||||
sandbox_wdt_start(dev, 1, flags);
|
||||
sandbox_reset();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue