Skip to content

watchdog: honour hw_margin_ms property

Stefan Roese u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3watchdog: remove stale ifndef CONFIG_WATCHDOG_TIMEOUT_MSECS from wdt.h+0 -00 replies
2/3watchdog: move initr_watchdog() to wdt-uclass.c+0 -00 replies
3/3watchdog: honour hw_margin_ms DT property+0 -01 reply
3/3watchdog: honour hw_margin_ms DT property+0 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchStefan Roese
1/3R-b
2/3R-b
3/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] watchdog: honour hw_margin_ms property
Quoted 10 lines · Rasmus Villemoes

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?

Yes, thanks for looking into this.

Quoted 3 lines

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.

If its too hard to enable interrupts in SPL for you or to provide some other means of a working get_timer() API, then we needto find another solution. You started with this weak function, which of course works. What other options are there? Adding a callback mechanism to register platform specific callback functions? Even though this might get a little bit too complicated.

Thanks,
Stefan