Skip to content

Commit 946af15

Browse files
georgecherian81Wim Van Sebroeck
authored andcommitted
drivers: watchdog: marvell_gti: Program the max_hw_heartbeat_ms
Program the max_hw_heartbeat_ms value so that the watchdog_pretimeout worker is activated. This kernel worker thread makes sure to ping the watchdog in case the userspace is unable to do so. This kernel worker ping will be done only till the full watchdog timeout there by maintaining the watchdog functionality in case of a real hang. Signed-off-by: George Cherian <george.cherian@marvell.com> Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20231009044037.514570-2-bbhushan2@marvell.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent cc5cfc1 commit 946af15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/marvell_gti_wdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ static int gti_wdt_probe(struct platform_device *pdev)
299299

300300
/* Maximum timeout is 3 times the pretimeout */
301301
wdog_dev->max_timeout = max_pretimeout * 3;
302+
wdog_dev->max_hw_heartbeat_ms = max_pretimeout * 1000;
302303
/* Minimum first timeout (pretimeout) is 1, so min_timeout as 3 */
303304
wdog_dev->min_timeout = 3;
304305
wdog_dev->timeout = wdog_dev->pretimeout;

0 commit comments

Comments
 (0)