From: Boris BREZILLON Date: Sun, 3 Nov 2013 17:52:43 +0000 (+0100) Subject: watchdog: at91sam9_wdt: avoid spurious watchdog reset during init X-Git-Tag: v3.14-rc1~51^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a04c3f01d33f4661424deeff67913699a0910c53;p=pandora-kernel.git 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 Reviewed-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- Reading git-diff-tree failed