Skip to content

Commit 982bb70

Browse files
Tero KristoWim Van Sebroeck
authored andcommitted
watchdog: reset last_hw_keepalive time at start
Currently the watchdog core does not initialize the last_hw_keepalive time during watchdog startup. This will cause the watchdog to be pinged immediately if enough time has passed from the system boot-up time, and some types of watchdogs like K3 RTI does not like this. To avoid the issue, setup the last_hw_keepalive time during watchdog startup. Signed-off-by: Tero Kristo <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 436867b commit 982bb70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/watchdog_dev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ static int watchdog_start(struct watchdog_device *wdd)
282282
if (err == 0) {
283283
set_bit(WDOG_ACTIVE, &wdd->status);
284284
wd_data->last_keepalive = started_at;
285+
wd_data->last_hw_keepalive = started_at;
285286
watchdog_update_worker(wdd);
286287
}
287288

0 commit comments

Comments
 (0)