All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] watchdog petting during autoboot delay
@ 2010-05-26 10:34 Nicolas Ferre
  2010-05-26 18:13 ` Mike Frysinger
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Ferre @ 2010-05-26 10:34 UTC (permalink / raw)
  To: u-boot

Watchdog resets were experienced during autoboot delay. Petting the watchdog
during abortboot() function solve the issue.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
 common/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/common/main.c b/common/main.c
index f7e7c1c..ea040aa 100644
--- a/common/main.c
+++ b/common/main.c
@@ -159,6 +159,7 @@ static __inline__ int abortboot(int bootdelay)
 	 * when catch up.
 	 */
 	do {
+		WATCHDOG_RESET();	/* Trigger watchdog, if needed */
 		if (tstc()) {
 			if (presskey_len < presskey_max) {
 				presskey [presskey_len ++] = getc();
@@ -251,6 +252,7 @@ static __inline__ int abortboot(int bootdelay)
 # endif
 				break;
 			}
+			WATCHDOG_RESET();	/* Trigger watchdog, if needed */
 			udelay(10000);
 		}
 
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-13  2:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-26 10:34 [U-Boot] [PATCH] watchdog petting during autoboot delay Nicolas Ferre
2010-05-26 18:13 ` Mike Frysinger
2010-06-03 17:27   ` Nicolas Ferre
2010-06-03 17:39   ` Nicolas Ferre
2010-06-03 18:24     ` Mike Frysinger
2010-06-10 14:57       ` [U-Boot] [PATCH] serial: atmel_usart: insert watchdog petting during putc() and tstc() Nicolas Ferre
2010-06-13  2:27         ` Mike Frysinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.