]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: fix sandbox_wdt_expire_now()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 2 Nov 2021 18:44:30 +0000 (19:44 +0100)
committerSimon Glass <sjg@chromium.org>
Sat, 13 Nov 2021 15:16:52 +0000 (08:16 -0700)
commit592e2e592964f76eda4fc797b296742556ecdf62
tree287b45e3614f2c3e2df82a9596e7af37a5f7d989
parentace5bb3eca73ae54a28f67cde97bcd9a089cbb06
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>
drivers/watchdog/sandbox_wdt.c