Skip to contentSkip to conversation

watchdog - v3.3-rc5 Fixes

GIT PULL Wim Van Sebroeck 1 participant 1 message Mar 1, 2012

Subsystems (4)
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:

 MAINTAINERS                    |    2 -
 drivers/watchdog/Kconfig       |    2 -
 drivers/watchdog/booke_wdt.c   |    6 +++-
 drivers/watchdog/hpwdt.c       |    5 ++-
 drivers/watchdog/pnx4008_wdt.c |    2 -
 drivers/watchdog/s3c2410_wdt.c |   57 ++++++++++++++++++++++-------------------
 6 files changed, 42 insertions(+), 32 deletions(-)

with these Changes:

commit 741b9c7da1abf2f96f69d232fbeef5aff1371be3

Author: Dmitry Artamonow <[email protected]>
Date:   Thu Jan 26 23:24:30 2012 +0400

watchdog: fix GETTIMEOUT ioctl in booke_wdt

Commit dcfb748422 ([WATCHDOG] fix book E watchdog to take WDIOC_SETTIMEOUT arg in seconds) fixed SETTIMEOUT ioctl to use seconds as a parameter instead of some hardware-specific "period", but missed to apply similar changes to GETTIMEOUT, so it still returns "period" value. Let's fix it! Also, while at it, make SETTIMEOUT ioctl return real timeout value as it should do according to the documentation.

commit f599aaf00f6b5b35ea6af9e428eab8f894752efd

Author: Wim Van Sebroeck <[email protected]>
Date:   Tue Feb 28 17:11:05 2012 +0100

watchdog: update maintainers git entry

The git repository for watchdog device drivers moved.

commit 7ec0f040cf0b161a6068ad4797fff0bd63e83e4f

Author: Masanari Iida <[email protected]>
Date:   Sat Feb 11 00:40:56 2012 +0900

watchdog: Fix typo in pnx4008_wdt.c

Correct spelling "resouce" to "resource" in
drivers/watchdog/pnx4008_wdt.c

commit e1d1d68aae86c43d94e0c25ce27ea0050fceea01

Author: Masanari Iida <[email protected]>
Date:   Sat Feb 11 00:42:16 2012 +0900

watchdog: Fix typo in Kconfig

Correct spelling "overidden" to "overridden" in drivers/watchdog/Kconfig

commit 78d3e00bb0bcfb11596b14f5d5472922b4c7e429

Author: MyungJoo Ham <[email protected]>
Date:   Fri Jan 13 14:14:23 2012 +0900

watchdog: fix error in probe() of s3c2410_wdt (reset at booting)

Probe function of s3c2410 watchdog calls request_irq before initializing required value (wdt_count). This incurs resetting watchdog counter value and watchdog-reboot during booting up.

This patch addresses such an issue by calling request_irq later.

Error handling in probe function and calling oder in remove function are also revised accordingly.

commit 97d2a10d5804d585ab0b58efbd710948401b886a

Author: Maxim Uvarov <[email protected]>
Date:   Sun Jan 15 20:02:50 2012 -0800

watchdog: hpwdt: clean up set_memory_x call for 32 bit

1. address has to be page aligned.
2. set_memory_x uses page size argument, not size. Bug causes with following commit:
commit da28179b4e90dda56912ee825c7eaa62fc103797
Author: Mingarelli, Thomas <[email protected]>
Date: Mon Nov 7 10:59:00 2011 +0100

watchdog: hpwdt: Changes to handle NX secure bit in 32bit path

commit e67d668e147c3b4fec638c9e0ace04319f5ceccd upstream.

This patch makes use of the set_memory_x() kernel API in order to make necessary BIOS calls to source NMIs.

For completeness, I added the overal diff below.

Greetings,
Wim.

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

MAINTAINERS +1 -1
index 0a96e80..4e41d52 100644
@@ -7271,7 +7271,7 @@ WATCHDOG DEVICE DRIVERS
 M:	Wim Van Sebroeck <[email protected]>
 L:	[email protected]
 W:	http://www.linux-watchdog.org/
-T:	git git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog.git
+T:	git git://www.linux-watchdog.org/linux-watchdog.git
 S:	Maintained
 F:	Documentation/watchdog/
 F:	drivers/watchdog/
drivers/watchdog/Kconfig +1 -1
index 877b107..df9e8f0 100644
@@ -1098,7 +1098,7 @@ config BOOKE_WDT_DEFAULT_TIMEOUT
 	  For Freescale Book-E processors, this is a number between 0 and 63.
 	  For other Book-E processors, this is a number between 0 and 3.
 
-	  The value can be overidden by the wdt_period command-line parameter.
+	  The value can be overridden by the wdt_period command-line parameter.
 
 # PPC64 Architecture
 
drivers/watchdog/booke_wdt.c +5 -1
index 337265b..7c0fdfc 100644
@@ -198,9 +198,13 @@ static long booke_wdt_ioctl(struct file *file,
 		booke_wdt_period = tmp;
 #endif
 		booke_wdt_set();
-		return 0;
+		/* Fall */
 	case WDIOC_GETTIMEOUT:
+#ifdef	CONFIG_FSL_BOOKE
+		return put_user(period_to_sec(booke_wdt_period), p);
+#else
 		return put_user(booke_wdt_period, p);
+#endif
 	default:
 		return -ENOTTY;
 	}
drivers/watchdog/hpwdt.c +3 -2
index 8464ea1..3c166d3 100644
@@ -231,7 +231,7 @@ static int __devinit cru_detect(unsigned long map_entry,
 
 	cmn_regs.u1.reax = CRU_BIOS_SIGNATURE_VALUE;
 
-	set_memory_x((unsigned long)bios32_entrypoint, (2 * PAGE_SIZE));
+	set_memory_x((unsigned long)bios32_map, 2);
 	asminline_call(&cmn_regs, bios32_entrypoint);
 
 	if (cmn_regs.u1.ral != 0) {
@@ -250,7 +250,8 @@ static int __devinit cru_detect(unsigned long map_entry,
 			cru_rom_addr =
 				ioremap(cru_physical_address, cru_length);
 			if (cru_rom_addr) {
-				set_memory_x((unsigned long)cru_rom_addr, cru_length);
+				set_memory_x((unsigned long)cru_rom_addr & PAGE_MASK,
+					(cru_length + PAGE_SIZE - 1) >> PAGE_SHIFT);
 				retval = 0;
 			}
 		}
drivers/watchdog/pnx4008_wdt.c +1 -1
index 8e210aa..dfae030 100644
@@ -264,7 +264,7 @@ static int __devinit pnx4008_wdt_probe(struct platform_device *pdev)
 	wdt_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	if (wdt_mem == NULL) {
 		printk(KERN_INFO MODULE_NAME
-			"failed to get memory region resouce\n");
+			"failed to get memory region resource\n");
 		return -ENOENT;
 	}
 
drivers/watchdog/s3c2410_wdt.c +31 -26

131 lines not on this page · raw message