]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:41:39 +0000 (13:41 +0200)
commit6da1ffc4bc569404d5da18c9151d771d2dff4cef
tree3948832dd0111f42e46d0a3708ac2d482ab7f780
parentc7071d30529fda79d7e008130f4a60a7a1c5484f
watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety margin

commit cae58516534e110f4a8558d48aa4435e15519121 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/rti_wdt.c