mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
watchdog: w83627hf_wdt: Use WDOG_HW_RUNNING for running chip on boot
If the watchdog is already running when the driver is initialized, the
driver currently refreshes it once using the default timeout of 60
seconds.
Since commit ee142889e3 ("watchdog: Introduce WDOG_HW_RUNNING flag"),
the watchdog core can kick an already running watchdog alive until
userspace open the device.
Add the WDOG_HW_RUNNING flag to the watchdog status if the watchdog is
already running.
Signed-off-by: Paul Louvel <paul.louvel@bootlin.com>
Link: https://lore.kernel.org/r/20260707-w83627hf_wdt-nct6126d-v4-3-829e5f63d548@bootlin.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
3d6757a640
commit
c9aab8bba2
|
|
@ -244,6 +244,7 @@ static int w83627hf_init(struct watchdog_device *wdog, enum chips chip)
|
|||
pr_info("Watchdog already running. Resetting timeout to %d sec\n",
|
||||
wdog->timeout);
|
||||
superio_outb(cr_wdt_timeout, wdog->timeout);
|
||||
set_bit(WDOG_HW_RUNNING, &wdog->status);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user