watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety margin
authorJudith Mendez <jm@ti.com>
Wed, 17 Apr 2024 20:57:00 +0000 (15:57 -0500)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 4 May 2024 10:50:43 +0000 (12:50 +0200)
commitcae58516534e110f4a8558d48aa4435e15519121
tree501f125069216c109c73086f0e7cca484e5cb8dd
parent52df67b6b313984e1b58030fd1f6b8a873799e36
watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety margin

On AM62x, the watchdog is pet before the valid window is open. Fix
min_hw_heartbeat and accommodate a 2% + static offset safety margin.
The static offset accounts for max hardware error.

Remove the hack in the driver which shifts the open window boundary,
since it is no longer necessary due to the fix mentioned above.

cc: stable@vger.kernel.org
Fixes: 5527483f8f7c ("watchdog: rti-wdt: attach to running watchdog during probe")
Signed-off-by: Judith Mendez <jm@ti.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240417205700.3947408-1-jm@ti.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/rti_wdt.c