drivers: watchdog: marvell_gti: fix zero pretimeout handling
authorBharat Bhushan <bbhushan2@marvell.com>
Mon, 9 Oct 2023 04:40:36 +0000 (10:10 +0530)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 29 Oct 2023 18:45:08 +0000 (19:45 +0100)
commitcc5cfc112a62a4e97ed068513928f5cafd0e6285
tree4ee2f49a3d9ea0a259442dd30468d56ae72f3cf4
parentcd09da4703775d458fd5d0916ec22694b7f55d02
drivers: watchdog: marvell_gti: fix zero pretimeout handling

When pretimeout is set to 0 then do not reprogram timer
with zero timeout, this will reset device immediately.
Also disable interrupt to stop pretimeout notification.

Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231009044037.514570-1-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