fb925f9cec
Currently, if the system crashes or hangs during kernel boot before userspace initializes and configures the watchdog timer, then the watchdog won’t be able to recover the system as it’s not running. This becomes crucial during an over-the-air update, where if the newly updated kernel crashes on boot, the watchdog is needed to reset the device and boot into an alternative system partition. If the watchdog is disabled in such scenarios, it can lead to the system getting bricked. Enable the WDT during driver probe to allow recovery from any crash/hang seen during early kernel boot. Also, disable interrupts once userspace starts pinging the watchdog. Bug 5391604 Change-Id: If9e85751d8a9efeff943607231170283f0acebdd Signed-off-by: Kartik Rajput <kkartik@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/3rdparty/canonical/linux-noble/+/3419907 Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: Brad Griffis <bgriffis@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>