[PATCH v2] watchdog: meson: keep running if already active

Jerome Brunet jbrunet at baylibre.com
Tue Sep 6 05:21:26 PDT 2022


On Mon 01 Aug 2022 at 11:21, Philippe Boos <pboos at baylibre.com> 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 at baylibre.com>

Reviewed-by: Jerome Brunet <jbrunet at baylibre.com>



More information about the linux-amlogic mailing list