Re: [PATCH v2] watchdog: meson: keep running if already active
From: Jerome Brunet
Date: Tue Sep 06 2022 - 08:26:26 EST
On Mon 01 Aug 2022 at 11:21, Philippe Boos <pboos@xxxxxxxxxxxx> wrote:
> If the watchdog is already running (e.g.: started by bootloader) then
> the kernel driver should keep the watchdog active but the amlogic driver
> turns it off.
>
> Let the driver fix the clock rate if already active because we do not
> know the previous timebase value. To avoid unintentional resetting we
> temporarily set it to its maximum value.
>
> Then keep the enable bit if is was previously active.
>
> Signed-off-by: Philippe Boos <pboos@xxxxxxxxxxxx>
Reviewed-by: Jerome Brunet <jbrunet@xxxxxxxxxxxx>