From: Stefan Roese Date: Sat, 14 Mar 2020 13:04:53 +0100 Subject: [PATCH 0/3] watchdog: honour hw_margin_ms property In-Reply-To: <20200313160458.19727-1-rasmus.villemoes@prevas.dk> References: <39e2b876-6ba1-59b6-4ddd-068e120f9b4e@denx.de> <20200313160458.19727-1-rasmus.villemoes@prevas.dk> Message-ID: <296630eb-e529-6abf-0e8c-92644827c2ca@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 13.03.20 17:04, Rasmus Villemoes wrote: > 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. > 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