Skip to content
Commit 3b93d520 authored by Tao Ren's avatar Tao Ren Committed by Greg Kroah-Hartman
Browse files

watchdog: aspeed: fix hardware timeout calculation



[ Upstream commit e7dc481c ]

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

Fixes: efa859f7 ("watchdog: Add Aspeed watchdog driver")
Reported-by: default avatarAmithash Prasad <amithash@fb.com>
Signed-off-by: default avatarTao Ren <rentao.bupt@gmail.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210417034249.5978-1-rentao.bupt@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 412ef737
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment