diff options
author | Pali Rohár <pali@kernel.org> | 2021-03-09 14:26:54 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-04-06 10:47:32 +0200 |
commit | 9c44ff1c5f3c06ecaa165c75e2ba0f4a718d917b (patch) | |
tree | 0e4c418e803a950f52b753f5bb0f869a9dd3f10f /lib/efi_loader/efi_bootmgr.c | |
parent | 90eba245a66aa20589404ba537215faf2012c1a3 (diff) |
watchdog: Set/unset GD_FLG_WDT_READY flag in wdt_start()/wdt_stop()
Watchdog is ready after successful call of ops->start() callback in
wdt_start() function. And is stopped after successful call of ops->stop()
callback in wdt_stop function.
So move setting of GD_FLG_WDT_READY flag from initr_watchdog() function to
wdt_start() and ensure that GD_FLG_WDT_READY flag is unset in wdt_stop()
function.
This change ensures that GD_FLG_WDT_READY flag is set only when watchdog is
running. And ensures that flag is also also when watchdog was started not
only by initr_watchdog() call (e.g. by U-Boot 'wdt' command).
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'lib/efi_loader/efi_bootmgr.c')
0 files changed, 0 insertions, 0 deletions