From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] watchdog petting during autoboot delay
Date: Thu, 03 Jun 2010 19:39:11 +0200 [thread overview]
Message-ID: <4C07E8BF.1010607@atmel.com> (raw)
In-Reply-To: <201005261413.22106.vapier@gentoo.org>
Le 26/05/2010 20:13, Mike Frysinger :
> On Wednesday 26 May 2010 06:34:49 Nicolas Ferre wrote:
>> --- 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);
>> }
>
> if your udelay() implementation isnt calling WATCHDOG_RESET(), it is broken.
> yes, this is undocumented, but search the mailing archives for examples.
>
> i believe the same goes for serial devices and their tstc() function.
Well, after more checking, it seems that resetting the watchdog in tstc
function is not so common: only serial_pl01x.c is doing it. So I guess
that my first addition may be needed for other chips...
Best regards,
--
Nicolas Ferre
next prev parent reply other threads:[~2010-06-03 17:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C07E8BF.1010607@atmel.com \
--to=nicolas.ferre@atmel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.