All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alessandro Rubini <rubini-list@gnudd.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] at91sam9263ek: active watchdog support	via at91sam9263ek_wdt_config
Date: Mon, 15 Jun 2009 15:01:20 +0200	[thread overview]
Message-ID: <20090615130120.GA2747@mail.gnudd.com> (raw)
In-Reply-To: <20090615124422.GQ22102@game.jcrosoft.org>

>> But you have to delete hw_watchdog_init().
>> If you set there MR then linux won't be able to do it.
>> The patch needs only the WATCHDOG_RESET() and nothing more.

I agree.

> you need to update linux, the watchdog can be enable in u-boot
> but as it can only be disable once if u-boot or any other bootloader init
> we can not disable it
> so in this case linux will just have to buy time to the watchdog

On the sam926x processors It can only be confitured once. So Giulio
is right: u-boot shouldn't configure it, just kick it any now and then.

When a client asked to used the watchdog on the 9260 I chose not to
disable it in at91boot nor in u-boot. Then Linux (i.e., the final
user) could do whatever was fit: either disable it, enable it with a
faster timeout or leave it alone (at 13s or whatever the default is)
until some application sets a policy.

I don't like this hardware choice of "configure once only":
never-disable makes sense, but never-enable doesn't, in my
opinion.  But based on that the right thing for u-boot is not
configuring it a all, or we loose flexibility in later stages.

/alessandro

  parent reply	other threads:[~2009-06-15 13:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-01 16:29 [U-Boot] [PATCH 1/2] at91sam9: add watchdog support Jean-Christophe PLAGNIOL-VILLARD
2009-02-01 16:29 ` [U-Boot] [PATCH 2/2] at91sam9263ek: active watchdog support via at91sam9263ek_wdt_config Jean-Christophe PLAGNIOL-VILLARD
2009-03-08 23:19   ` Wolfgang Denk
2009-06-13 10:52     ` Giulio Benetti
2009-06-13 12:37       ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-15 10:38         ` Giulio Benetti
2009-06-15 12:44           ` Jean-Christophe PLAGNIOL-VILLARD
     [not found]         ` <h158eq$1@ger.gmane.org>
2009-06-15 13:01           ` Alessandro Rubini [this message]
2009-06-18 15:30             ` Giulio Benetti
2009-06-13 10:44 ` [U-Boot] [PATCH 1/2] at91sam9: add watchdog support Giulio Benetti
  -- strict thread matches above, loose matches on Subject: below --
2009-01-22 11:22 [U-Boot] [PATCH 0/2] " Jean-Christophe PLAGNIOL-VILLARD
2009-01-22 11:22 ` [U-Boot] [PATCH 1/2] " Jean-Christophe PLAGNIOL-VILLARD
2009-01-22 11:22   ` [U-Boot] [PATCH 2/2] at91sam9263ek: active watchdog support via at91sam9263ek_wdt_config Jean-Christophe PLAGNIOL-VILLARD
2009-03-08 23:15     ` Wolfgang Denk
2009-03-09  8:39       ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-09 11:19         ` Wolfgang Denk

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=20090615130120.GA2747@mail.gnudd.com \
    --to=rubini-list@gnudd.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.