Skip to contentSkip to conversation

watchdog - v3.1-rc2 - Fixes and removal

GIT PULL Wim Van Sebroeck 1 participant 1 message Nov 21, 2011

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

Hi Linus,

Please pull from 'master' branch of
git://www.linux-watchdog.org/linux-watchdog.git

This will update the following files:

 b/drivers/watchdog/Kconfig       |    7 
 b/drivers/watchdog/Makefile      |    1 
 b/drivers/watchdog/s3c2410_wdt.c |    4 
 b/drivers/watchdog/wm831x_wdt.c  |    2 
 drivers/watchdog/adx_wdt.c       |  355 ---------------------------------------
 5 files changed, 3 insertions(+), 366 deletions(-)

with these Changes:

commit 20403e845f9988446c5b48024ff4d0c3a5929f7d

Author: Dmitry Artamonow <[email protected]>
Date:   Wed Nov 16 12:46:13 2011 +0400

watchdog: fix initialisation printout in s3c2410_wdt

Looks like a typo creeped in, and driver prints s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq abled

instead of
s3c2410-wdt s3c2410-wdt: watchdog active, reset enabled, irq enabled

Also it may completely disinform about irq status, as it prints "irq enabled" when S3C2410_WTCON_INTEN is in fact 0.

Fix it.

commit f9849100851b28c8ad83e86d68d5110497a4e9d6

Author: Mark Brown <[email protected]>
Date:   Wed Nov 16 11:52:12 2011 +0000

watchdog: Don't overwrite error value in wm831x_wdt_set_timeout()

commit 943ef2ec4f5f14940ea391d25bf93eb99eb2ff2a

Author: Wim Van Sebroeck <[email protected]>
Date:   Tue Nov 15 11:45:16 2011 +0100

watchdog: adx_wdt.c: remove driver

Remove the driver (that was added in v2.6.32) since the architecture has never been merged into mainline.

For completeness, I added the overal diff below.

Greetings,
Wim.

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

drivers/watchdog/Kconfig +0 -7
index 6285867..79fd606 100644
@@ -314,13 +314,6 @@ config NUC900_WATCHDOG
 	  To compile this driver as a module, choose M here: the
 	  module will be called nuc900_wdt.
 
-config ADX_WATCHDOG
-	tristate "Avionic Design Xanthos watchdog"
-	depends on ARCH_PXA_ADX
-	help
-	  Say Y here if you want support for the watchdog timer on Avionic
-	  Design Xanthos boards.
-
 config TS72XX_WATCHDOG
 	tristate "TS-72XX SBC Watchdog"
 	depends on MACH_TS72XX
drivers/watchdog/Makefile +0 -1
index 55bd574..fe893e9 100644
@@ -51,7 +51,6 @@ obj-$(CONFIG_ORION_WATCHDOG) += orion_wdt.o
 obj-$(CONFIG_COH901327_WATCHDOG) += coh901327_wdt.o
 obj-$(CONFIG_STMP3XXX_WATCHDOG) += stmp3xxx_wdt.o
 obj-$(CONFIG_NUC900_WATCHDOG) += nuc900_wdt.o
-obj-$(CONFIG_ADX_WATCHDOG) += adx_wdt.o
 obj-$(CONFIG_TS72XX_WATCHDOG) += ts72xx_wdt.o
 obj-$(CONFIG_IMX2_WDT) += imx2_wdt.o
 
drivers/watchdog/adx_wdt.c deleted +0 -355

355 lines not on this page · raw message

drivers/watchdog/s3c2410_wdt.c +2 -2
index 5de7e4f..a79e384 100644
@@ -401,8 +401,8 @@ static int __devinit s3c2410wdt_probe(struct platform_device *pdev)
 
 	dev_info(dev, "watchdog %sactive, reset %sabled, irq %sabled\n",
 		 (wtcon & S3C2410_WTCON_ENABLE) ?  "" : "in",
-		 (wtcon & S3C2410_WTCON_RSTEN) ? "" : "dis",
-		 (wtcon & S3C2410_WTCON_INTEN) ? "" : "en");
+		 (wtcon & S3C2410_WTCON_RSTEN) ? "en" : "dis",
+		 (wtcon & S3C2410_WTCON_INTEN) ? "en" : "dis");
 
 	return 0;
 
drivers/watchdog/wm831x_wdt.c +1 -1
index 7be3855..e789a47 100644
@@ -150,7 +150,7 @@ static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev,
 		if (wm831x_wdt_cfgs[i].time == timeout)
 			break;
 	if (i == ARRAY_SIZE(wm831x_wdt_cfgs))
-		ret = -EINVAL;
+		return -EINVAL;
 
 	ret = wm831x_reg_unlock(wm831x);
 	if (ret == 0) {