lkml.org 
[lkml]   [2013]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] watchdog: at91sam9_wdt: avoid spurious watchdog reset during init
On 11/03/2013 09:52 AM, Boris BREZILLON wrote:
> 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>




\
 
 \ /
  Last update: 2013-11-03 19:41    [W:0.034 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site