Skip to contentSkip to conversation

v2.6.16 watchdog patches - pcwd.c pcwd_usb.c & at91_wdt.c

WATCHDOG Wim Van Sebroeck 1 participant 1 message Apr 2, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Linus,

Please pull from 'master' branch of
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog.git
or if master.kernel.org hasn't synced up yet:
master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog.git

This will update the following files:

 drivers/char/watchdog/Kconfig    |    7 +
 drivers/char/watchdog/Makefile   |    1 
 drivers/char/watchdog/at91_wdt.c |  228 +++++++++++++++++++++++++++++++++++++++
 drivers/char/watchdog/pcwd.c     |  137 +++++++++++++++++------
 drivers/char/watchdog/pcwd_usb.c |    3 
 5 files changed, 340 insertions(+), 36 deletions(-)

with these Changes:

Author: Andrew Victor <[email protected]>
Date:   Tue Mar 14 11:11:04 2006 +0200

[WATCHDOG] at91_wdt.c - Atmel AT91RM9200 watchdog driver

Watchdog driver for the Atmel AT91RM9200 processor.

Author: Adrian Bunk <[email protected]>
Date:   Fri Mar 10 19:04:38 2006 +0100

[WATCHDOG] pcwd_usb.c: fix a NULL pointer dereference

The Coverity checker noted that this resulted in a NULL pointer reference if we were coming from

if (usb_pcwd == NULL) {
printk(KERN_ERR PFX "Out of memory\n");
goto error;
}

Author: Wim Van Sebroeck <[email protected]>
Date:   Thu Mar 2 20:05:16 2006 +0100

[WATCHDOG] pcwd.c sprintf/strcpy fix

change sprintf(pcwd_private.fw_ver_str, "ERROR"); to strcpy... as pointed out by Andrew Morton.

Author: Wim Van Sebroeck <[email protected]>
Date:   Sun Feb 12 17:44:57 2006 +0100

[WATCHDOG] pcwd.c general clean-up after patches

removal of includes (since we don't use kmalloc and TASK_INTERRUPTABLE anymore).
Addition of missing commands.
Printk that lets the user know when the module was unloaded.

Author: Wim Van Sebroeck <[email protected]>
Date:   Sun Feb 12 17:12:55 2006 +0100

[WATCHDOG] pcwd.c add debug info

Add debugging info for the pcwd.c module.

Author: Wim Van Sebroeck <[email protected]>
Date:   Sun Feb 12 16:51:34 2006 +0100

[WATCHDOG] pcwd.c pcwd_cleanup_module patch

static void pcwd_cleanup_module doesn't need a return;

Author: Wim Van Sebroeck <[email protected]>
Date:   Sun Feb 12 16:47:34 2006 +0100

[WATCHDOG] pcwd.c firmware-info patch

Get the firmware version into the private data struct of the ISA-PC watchdog card.

Author: Wim Van Sebroeck <[email protected]>
Date:   Sun Feb 12 16:37:36 2006 +0100

[WATCHDOG] pcwd.c control status patch

Clean-up the control status code (insert tabs where relevant), Add new Control Status defines, Make sure that the R2DS bit stays the same.

The Changes can also be looked at on:

	http://www.kernel.org/git/?p=linux/kernel/git/wim/linux-2.6-watchdog.git;a=summary

For completeness, I added the overal diff below.

Greetings,
Wim.

================================================================================

drivers/char/watchdog/Kconfig +7 -0
index 16e99db..d53f664 100644
@@ -60,6 +60,13 @@ config SOFT_WATCHDOG
 
 # ARM Architecture
 
+config AT91_WATCHDOG
+	tristate "AT91RM9200 watchdog"
+	depends on WATCHDOG && ARCH_AT91RM9200
+	help
+	  Watchdog timer embedded into AT91RM9200 chips. This will reboot your
+	  system when the timeout is reached.
+
 config 21285_WATCHDOG
 	tristate "DC21285 watchdog"
 	depends on WATCHDOG && FOOTBRIDGE
drivers/char/watchdog/Makefile +1 -0
index d6f27fd..6ab77b6 100644
@@ -23,6 +23,7 @@ obj-$(CONFIG_WDTPCI) += wdt_pci.o
 obj-$(CONFIG_USBPCWATCHDOG) += pcwd_usb.o
 
 # ARM Architecture
+obj-$(CONFIG_AT91_WATCHDOG) += at91_wdt.o
 obj-$(CONFIG_21285_WATCHDOG) += wdt285.o
 obj-$(CONFIG_977_WATCHDOG) += wdt977.o
 obj-$(CONFIG_IXP2000_WATCHDOG) += ixp2000_wdt.o
drivers/char/watchdog/at91_wdt.c new file +228 -0

228 lines not on this page · raw message

drivers/char/watchdog/pcwd.c +102 -35

316 lines not on this page · raw message

drivers/char/watchdog/pcwd_usb.c +2 -1
index 2700c5c..3fdfda9 100644
@@ -705,7 +705,8 @@ err_out_misc_deregister:
 err_out_unregister_reboot:
 	unregister_reboot_notifier(&usb_pcwd_notifier);
 error:
-	usb_pcwd_delete (usb_pcwd);
+	if (usb_pcwd)
+		usb_pcwd_delete(usb_pcwd);
 	usb_pcwd_device = NULL;
 	return retval;
 }