diff options
author | Tao Ren <rentao.bupt@gmail.com> | 2021-04-17 06:42:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-20 17:10:49 +0300 |
commit | e7de89b8b28531377b4bbf0968fb8465be9af2a2 (patch) | |
tree | 3e0285f5694633beea821247e1673db5b75b8ff7 /fs | |
parent | 0366238f6af4bf76553cb89f5e5663cb873172d9 (diff) | |
download | linux-e7de89b8b28531377b4bbf0968fb8465be9af2a2.tar.xz |
watchdog: aspeed: fix hardware timeout calculation
[ Upstream commit e7dc481c92060f9ce872878b0b7a08c24713a7e5 ]
Fix hardware timeout calculation in aspeed_wdt_set_timeout function to
ensure the reload value does not exceed the hardware limit.
Fixes: efa859f7d786 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions