Skip to contentSkip to conversation

ftwdt010_wdt: support faraday ftwdt010 watchdog

PATCH Superseded Macpaul Lin 3 participants 4 messages Jan 26, 2011 – Apr 12, 2011 Watchdog device drivers

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 ftwdt010_wdt: support faraday ftwdt010 watchdog

Faraday ftwdt010 watchdog is an architecture independant watchdog. It is usaually used in SoC chip design.

---
Change v2:
Fix the wrong title of ftwdt010_wdt patch.
Change v3:
Patch v2 was encoded in utf-8. Fixed to ASCII.
Change v4:
Replace the copyright statement "origin: Linux kernel" because the Linux driver haven't commit into kernel yet.

 drivers/watchdog/Makefile       |    1 +
 drivers/watchdog/ftwdt010_wdt.c |  102 ++++++++++++++++++++++++++++++++++++++
 drivers/watchdog/ftwdt010_wdt.h |  103 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 206 insertions(+), 0 deletions(-)
 create mode 100644 drivers/watchdog/ftwdt010_wdt.c
 create mode 100644 drivers/watchdog/ftwdt010_wdt.h
drivers/watchdog/Makefile +1 -0
index 6ab4d52..5579bf2 100644
@@ -26,6 +26,7 @@ include $(TOPDIR)/config.mk
 LIB	:= $(obj)libwatchdog.o
 
 COBJS-$(CONFIG_AT91SAM9_WATCHDOG) += at91sam9_wdt.o
+COBJS-$(CONFIG_FTWDT010_WATCHDOG) += ftwdt010_wdt.o
 
 COBJS	:= $(COBJS-y)
 SRCS	:= $(COBJS:.o=.c)
drivers/watchdog/ftwdt010_wdt.c new file +102 -0

102 lines not on this page · raw message

drivers/watchdog/ftwdt010_wdt.h new file +103 -0

103 lines not on this page · raw message

Signature · 1 line
1.7.3.5
#1 lore raw

PATCH v4 1/1 ftwdt010_wdt: support faraday ftwdt010 watchdog

Dear Macpaul Lin,

Quoted 13 lines · In message <[email protected]> you wrote:

Faraday ftwdt010 watchdog is an architecture independant watchdog. It is usaually used in SoC chip design.

---
Change v2:
Fix the wrong title of ftwdt010_wdt patch.
Change v3:
Patch v2 was encoded in utf-8. Fixed to ASCII.
Change v4:
Replace the copyright statement "origin: Linux kernel" because the Linux driver haven't commit into kernel yet.

Quoted 6 lines
 drivers/watchdog/Makefile       |    1 +
 drivers/watchdog/ftwdt010_wdt.c |  102 ++++++++++++++++++++++++++++++++++++++
 drivers/watchdog/ftwdt010_wdt.h |  103 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 206 insertions(+), 0 deletions(-)
 create mode 100644 drivers/watchdog/ftwdt010_wdt.c
 create mode 100644 drivers/watchdog/ftwdt010_wdt.h

Applied, after fixing the typo "usaually" in the commit message and cleaning up the checkpatch warning:

WARNING: please, no space before tabs
#224: FILE: drivers/watchdog/ftwdt010_wdt.h:38:
+^Iunsigned int^Iwdclear;^I/* Timer Clear ^I^I- 0x14 */$

Best regards,

Wolfgang Denk

Signature · 8 lines
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
No one is fit to be trusted with power. ... No one. ... Any  man  who
has lived at all knows the follies and wickedness he's capabel of ...
And  if  he  does  know it, he knows also that neither he nor any man
ought to be allowed to decide a single human fate.
- C. P. Snow,  The Light and the Dark
#2 lore raw

PATCH v4 1/1 ftwdt010_wdt: support faraday ftwdt010 watchdog

Hi Wolfgang

2011/4/12 Wolfgang Denk <[email protected]>:

Quoted 15 lines

Dear Macpaul Lin,

Quoted 12 lines · In message <[email protected]> you wrote:

Faraday ftwdt010 watchdog is an architecture independant watchdog. It is usaually used in SoC chip design.

---
?Change v2:
? ?Fix the wrong title of ftwdt010_wdt patch.
?Change v3:
? ?Patch v2 was encoded in utf-8. Fixed to ASCII.
?Change v4:
? ?Replace the copyright statement "origin: Linux kernel" because the Linux ? ?driver haven't commit into kernel yet.

Thanks for your patience for reviewing and fixing up the code.

However, the latest version of this watchdog ftwdt010_wdt is v6.
http://patchwork.ozlabs.org/patch/88164/

Since you have already applied and fix patch v4, I'll mark patch v6 as superseded and
send the diff between patch v4 and patch v6 as an "enhancement" patch of ftwdt010_wdt.c later.

The differ between v4 and v6 are
1. Move header to include/faraday
2. Fix include path in ftwdt010_wdt.c
3. Fix function prototype and declaration to
- ftwdt010_wdt_settimeout
- ftwdt010_wdt_reset
- ftwdt010_wdt_disable
4. Add "#if definde (CONFIG_HW_WATCHDOG)" let user have flexibilty to choose which better to his product.

Sorry for the bothering.

Thanks.

Signature · 2 lines
Best regards,
Macpaul Lin
#3 lore raw

PATCH v4 1/1 ftwdt010_wdt: support faraday ftwdt010 watchdog

Dear Macpaul Lin,

Quoted 5 lines · In message <[email protected]> you wrote:

Thanks for your patience for reviewing and fixing up the code.

However, the latest version of this watchdog ftwdt010_wdt is v6.
http://patchwork.ozlabs.org/patch/88164/

Sorry for missing this - note that it would have helped a lot of you hat kept proper thread information in your followup patches (see bullet # 3 in
http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions)

Quoted 4 lines

Since you have already applied and fix patch v4, I'll mark patch v6 as superseded and
send the diff between patch v4 and patch v6 as an "enhancement" patch of ftwdt010_wdt.c later.

Thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
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
Death. Destruction. Disease. Horror. That's what war  is  all  about.
That's what makes it a thing to be avoided.
	-- Kirk, "A Taste of Armageddon", stardate 3193.0