[PATCH 0/3] watchdog: honour hw_margin_ms property

Rasmus Villemoes rasmus.villemoes at prevas.dk
Fri Mar 13 17:04:55 CET 2020


Some watchdogs must be reset more often than the once-per-second
ratelimit used by the generic watchdog_reset function in
wdt-uclass.c. There's precedent (from the gpio-wdt driver in linux)
for using a property called hw_margin_ms to let the device tree tell
the driver how often the device needs resetting. So use that
generically. No change in default behaviour.

On top of https://patchwork.ozlabs.org/patch/1242772/ .

Stefan, something like this? That at least solves half my problems and
might be useful to others as well. Then I'll have to figure out the
time-stands-still problem in some other way.

Rasmus Villemoes (3):
  watchdog: remove stale ifndef CONFIG_WATCHDOG_TIMEOUT_MSECS from wdt.h
  watchdog: move initr_watchdog() to wdt-uclass.c
  watchdog: honour hw_margin_ms DT property

 drivers/watchdog/wdt-uclass.c | 43 ++++++++++++++++++++++++++++++++++-
 include/wdt.h                 | 38 +------------------------------
 2 files changed, 43 insertions(+), 38 deletions(-)

-- 
2.23.0



More information about the U-Boot mailing list