diff options
author | Boris BREZILLON <b.brezillon@overkiz.com> | 2013-11-03 18:52:43 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2014-01-28 21:34:38 +0100 |
commit | a04c3f01d33f4661424deeff67913699a0910c53 (patch) | |
tree | 0632c5a099c300fe0414244cebe8dce8ce051334 /drivers/gpio/gpio-rdc321x.c | |
parent | watchdog: at91sam9_wdt: fix secs_to_ticks (diff) | |
download | linux-a04c3f01d33f4661424deeff67913699a0910c53.tar.xz linux-a04c3f01d33f4661424deeff67913699a0910c53.zip |
watchdog: at91sam9_wdt: avoid spurious watchdog reset during init
Use the min_heartbeat value instead of the calculated heartbeat value for
the first watchdog reset to avoid spurious watchdog reset.
Resetting the watchdog counter during init might lead to a watchdog fault
reset because the watchdog counter has to be running for at least
min_heartbeat.
Resetting the watchdog counter after heartbeat might lead to a watchdog
timeout reset because the watchdog counter is running for more than
max_heartbeat time.
Using min_heartbeat instead of heartbeat does not guarantee that the
watchdog won't trigger a reset, but at least it reduces the chances to be
in such a case.
Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/gpio/gpio-rdc321x.c')
0 files changed, 0 insertions, 0 deletions