Re: [PATCH RESEND v2 3/5] watchdog: octeontx_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 <CAFLszThfRkVC7i962Tn3VweE4Qxqarp4aBVyTbF78Q+59JJmdw@mail.gmail.com>
On 2026-08-12T09:48:39, Juuso Rinta <[email protected]> wrote:
> watchdog: octeontx_wdt: set max_timeout_ms in probe
>
> Report the hardware-limited maximum timeout value to the wdt
> uclass by setting max_timeout_ms in the per-device uclass-plat
> data during octeontx_wdt_probe().
>
> The timeout is programmed via the 16-bit WDOG_LEN field in
> configured steps, so the largest representable timeout is
> (0xffff << 8) steps. This is then converted to milliseconds
> via the timershift and clock rate, and set only when the rate
> is valid and non-zero.
>
> Signed-off-by: Juuso Rinta <[email protected]>
>
> drivers/watchdog/octeontx_wdt.c | 17 +++++++++++++++++
>  1 file 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.