* [U-Boot] [PATCH] README: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG
@ 2011-04-27 15:25 Detlev Zundel
2011-04-27 16:27 ` Mike Frysinger
2011-05-12 21:26 ` Wolfgang Denk
0 siblings, 2 replies; 5+ messages in thread
From: Detlev Zundel @ 2011-04-27 15:25 UTC (permalink / raw)
To: u-boot
Now that we have the documentation, the code should be changed to reflect
it ;)
Asd far as I can see, these are the places where HW_WATCHDOG is used
instead of WATCHDOG:
arch/blackfin/cpu/blackfin/watchdog.c
arch/m68k/cpu/mcf547x_8x/cpu.c
The relevant maintainers are on CC.
Signed-off-by: Detlev Zundel <dzu@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
---
README | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/README b/README
index cdbb9de..63f5647 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
#
-# (C) Copyright 2000 - 2009
+# (C) Copyright 2000 - 2011
# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
#
# See file CREDITS for list of people who contributed to this
@@ -719,10 +719,17 @@ The following options need to be configured:
- Watchdog:
CONFIG_WATCHDOG
If this variable is defined, it enables watchdog
- support. There must be support in the platform specific
- code for a watchdog. For the 8xx and 8260 CPUs, the
- SIU Watchdog feature is enabled in the SYPCR
- register.
+ support for the SoC. There must be support in the SoC
+ specific code for a watchdog. For the 8xx and 8260
+ CPUs, the SIU Watchdog feature is enabled in the SYPCR
+ register. When supported for a specific SoC is
+ available, then no further board specific code should
+ be needed to use it.
+
+ CONFIG_HW_WATCHDOG
+ When using a watchdog circuitry external to the used
+ SoC, then define this variable and provide board
+ specific code for the "hw_watchdog_reset" function.
- U-Boot Version:
CONFIG_VERSION_VARIABLE
--
1.7.4.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] README: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG
2011-04-27 15:25 [U-Boot] [PATCH] README: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG Detlev Zundel
@ 2011-04-27 16:27 ` Mike Frysinger
2011-04-29 11:06 ` Detlev Zundel
2011-05-12 21:26 ` Wolfgang Denk
1 sibling, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2011-04-27 16:27 UTC (permalink / raw)
To: u-boot
On Wed, Apr 27, 2011 at 11:25, Detlev Zundel wrote:
> Now that we have the documentation, the code should be changed to reflect
> it ;)
>
> Asd far as I can see, these are the places where HW_WATCHDOG is used
> instead of WATCHDOG:
the trouble is that watchdog.h doesnt seem to match, nor does the
name. "hardware" means to me "hardware" as in "the cpu hardware".
#ifdef CONFIG_HW_WATCHDOG
...
#else
/*
* Maybe a software watchdog?
*/
...
#endif
i dont see how a watchdog in the SoC could be a "software" watchdog or
a "non-hardware" watchdog.
the watchdog system is a legacy mess, so probably be easier to just
gut the whole thing.
-mike
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] README: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG
2011-04-27 16:27 ` Mike Frysinger
@ 2011-04-29 11:06 ` Detlev Zundel
2011-04-30 0:17 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: Detlev Zundel @ 2011-04-29 11:06 UTC (permalink / raw)
To: u-boot
Hi Mike,
> On Wed, Apr 27, 2011 at 11:25, Detlev Zundel wrote:
>> Now that we have the documentation, the code should be changed to reflect
>> it ;)
>>
>> Asd far as I can see, these are the places where HW_WATCHDOG is used
>> instead of WATCHDOG:
>
> the trouble is that watchdog.h doesnt seem to match, nor does the
> name. "hardware" means to me "hardware" as in "the cpu hardware".
Yes, I understand that the situation is not 100% ideal, but I do not
share your pessimism. Currently we should straighten out the
inconsistencies present in the code and then subsequently we can think
about aligning it with what we agree on to be a good name for.
>
> #ifdef CONFIG_HW_WATCHDOG
> ...
> #else
> /*
> * Maybe a software watchdog?
> */
> ...
> #endif
>
> i dont see how a watchdog in the SoC could be a "software" watchdog or
> a "non-hardware" watchdog.
True, we should align the comments in here also - I'll se if I can come
up with something sensible.
> the watchdog system is a legacy mess, so probably be easier to just
> gut the whole thing.
A agree that the naming is not ideal, but this isn't a good enough
argument for removing it. Apart from that, this feature is used in many
commercial systems...
Cheers
Detlev
--
config LGUEST
If unsure, say N. If curious, say M. If masochistic, say Y.
-- linux/drivers/lguest/Kconfig
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] README: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG
2011-04-29 11:06 ` Detlev Zundel
@ 2011-04-30 0:17 ` Mike Frysinger
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2011-04-30 0:17 UTC (permalink / raw)
To: u-boot
On Friday, April 29, 2011 07:06:56 Detlev Zundel wrote:
> > On Wed, Apr 27, 2011 at 11:25, Detlev Zundel wrote:
> >> Now that we have the documentation, the code should be changed to
> >> reflect it ;)
> >>
> >> Asd far as I can see, these are the places where HW_WATCHDOG is used
> >
> >> instead of WATCHDOG:
> > the trouble is that watchdog.h doesnt seem to match, nor does the
> > name. "hardware" means to me "hardware" as in "the cpu hardware".
>
> Yes, I understand that the situation is not 100% ideal, but I do not
> share your pessimism.
it isnt pessimism ... it's a fact that the documentation does not match the
source, nor is the source clear.
> > > the watchdog system is a legacy mess, so probably be easier to just
> > gut the whole thing.
>
> A agree that the naming is not ideal, but this isn't a good enough
> argument for removing it. Apart from that, this feature is used in many
> commercial systems...
i didnt mean remove it and not provide equivalent functionality. there should
be a single CONFIG_WATCHDOG and every different watchdog driver should have
its own CONFIG_WATCHDOG_FOO define.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110429/f99694a0/attachment.pgp
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] README: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG
2011-04-27 15:25 [U-Boot] [PATCH] README: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG Detlev Zundel
2011-04-27 16:27 ` Mike Frysinger
@ 2011-05-12 21:26 ` Wolfgang Denk
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2011-05-12 21:26 UTC (permalink / raw)
To: u-boot
Dear Detlev Zundel,
In message <1303917959-32324-1-git-send-email-dzu@denx.de> you wrote:
> Now that we have the documentation, the code should be changed to reflect
> it ;)
>
> Asd far as I can see, these are the places where HW_WATCHDOG is used
> instead of WATCHDOG:
>
> arch/blackfin/cpu/blackfin/watchdog.c
> arch/m68k/cpu/mcf547x_8x/cpu.c
>
> The relevant maintainers are on CC.
>
> Signed-off-by: Detlev Zundel <dzu@denx.de>
> Cc: Mike Frysinger <vapier@gentoo.org>
> Cc: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
> ---
> README | 17 ++++++++++++-----
> 1 files changed, 12 insertions(+), 5 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Be careful what you wish for. You never know who will be listening.
- Terry Pratchett, _Soul Music_
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-05-12 21:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-27 15:25 [U-Boot] [PATCH] README: Clarify difference of CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG Detlev Zundel
2011-04-27 16:27 ` Mike Frysinger
2011-04-29 11:06 ` Detlev Zundel
2011-04-30 0:17 ` Mike Frysinger
2011-05-12 21:26 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox