drivers: watchdog: marvell_gti: Program the max_hw_heartbeat_ms
authorGeorge Cherian <george.cherian@marvell.com>
Mon, 9 Oct 2023 04:40:37 +0000 (10:10 +0530)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 29 Oct 2023 18:45:08 +0000 (19:45 +0100)
commit946af15b9614f49f3a28b62d516867031428d561
treed8694bc4630804446718999f2b257fe570288816
parentcc5cfc112a62a4e97ed068513928f5cafd0e6285
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>
drivers/watchdog/marvell_gti_wdt.c