]> 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:47:43 +0000 (13:47 +0200)
commit8b732150f2e37f6ef252db08a2df7d219b07a59c
tree49b56c8d5421be9673c14b8c921621c75763b03b
parent7669752383051f6071dbd7dfaf6f73324b88a347
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