]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: aspeed: fix hardware timeout calculation
authorTao Ren <rentao.bupt@gmail.com>
Sat, 17 Apr 2021 03:42:49 +0000 (20:42 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 21 Jun 2021 06:49:04 +0000 (08:49 +0200)
commit8d6f96a9f8d75b11b8135ba150ba088841e8c041
treef69db179818cf2ade11dcb75d6e66b811e317444
parent08764d91fcac1eaecb6a3cba8fe67482b6ce64df
watchdog: aspeed: fix hardware timeout calculation

Fix hardware timeout calculation in aspeed_wdt_set_timeout function to
ensure the reload value does not exceed the hardware limit.

Fixes: 2e6645ab5f60 ("watchdog: Add Aspeed watchdog driver")
Reported-by: Amithash Prasad <amithash@fb.com>
Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210417034249.5978-1-rentao.bupt@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/aspeed_wdt.c