Re: [PATCH RESEND v2 4/5] watchdog: sandbox_wdt: set max_timeout_ms in probe

Simon Glass <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot.general,gmane.comp.boot-loaders.u-boot
Message-ID <CAFLszThgwEacAB_za5Ne+dxar4rah4KRyRUoMORtAuMrivENFQ@mail.gmail.com>
On 2026-08-12T09:48:39, Juuso Rinta <[email protected]> wrote:
> watchdog: sandbox_wdt: set max_timeout_ms in probe
>
> Add a SANDBOX_WDT_MAX_TIMEOUT_MS define to sandbox asm/state.h
> to emulate a hardware-limited maximum timeout.
>
> Clamp the timeout_ms in sandbox_wdt_start() to the defined max
> timeout value for testability.
>
> Report the maximum timeout value to the wdt uclass by setting
> max_timeout_ms in the per-device uclass-plat data during
> sandbox_wdt_probe().
>
> Signed-off-by: Juuso Rinta <[email protected]>
>
> arch/sandbox/include/asm/state.h |  2 ++
>  drivers/watchdog/sandbox_wdt.c   | 15 +++++++++++++++
>  2 files changed, 17 insertions(+)

Reviewed-by: Simon Glass <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.