[PATCH v3] watchdog: sunxi_wdt: Allow watchdog to remain enabled after probe

From: Regis Dargent
Date: Tue Feb 25 2025 - 09:42:59 EST


Hi,

V3 of the patch allowing sunxi watchdog to remain enabled after probe.
This 3rd version is mainly about code cleanup.

Best regards,
Regis

Jernej Škrabec:
I wouldn't add checks on CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED here.
My understanding is that this config is already managed in the generic
watchdog part, as long as the WDOG_HW_RUNNING bit matches the actual
state of the HW watchdog timer.
I only saw one reference in a HW driver, stm32_iwdg, where they cannot
read the watchdog state, so they start it and set the WDOG_HW_RUNNING
bit so that both match.