lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200707302216.31516.mb@bu3sch.de>
Date:	Mon, 30 Jul 2007 22:16:31 +0200
From:	Michael Buesch <mb@...sch.de>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	Felix Fietkau <nbd@...nwrt.org>,
	Aurelien Jarno <aurelien@...el32.net>,
	"linux-kernel" <linux-kernel@...r.kernel.org>
Subject: [PATCH] ssb: Watchdog support

From: Aurelien Jarno <aurelien@...el32.net>

The patch below against 2.6.23-rc1-mm1 adds a new function to control
the watchdog. It originally comes from the OpenWrt patches.

Cc: Felix Fietkau <nbd@...nwrt.org>
Signed-off-by: Aurelien Jarno <aurelien@...el32.net>
Signed-off-by: Michael Buesch <mb@...sch.de>

--- a/drivers/ssb/driver_chipcommon.c	2007-07-30 19:59:02.000000000 +0200
+++ b/drivers/ssb/driver_chipcommon.c	2007-07-30 20:55:54.000000000 +0200
@@ -344,6 +344,13 @@
 	}
 }
 
+/* Set chip watchdog reset timer to fire in 'ticks' backplane cycles */
+void
+ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, u32 ticks)
+{
+	/* instant NMI */
+	chipco_write32(cc, SSB_CHIPCO_WATCHDOG, ticks);
+}
 
 #ifdef CONFIG_SSB_SERIAL
 int ssb_chipco_serial_init(struct ssb_chipcommon *cc,
--- a/include/linux/ssb/ssb_driver_chipcommon.h	2007-07-30 19:59:02.000000000 +0200
+++ b/include/linux/ssb/ssb_driver_chipcommon.h	2007-07-30 20:55:54.000000000 +0200
@@ -380,6 +380,9 @@
 extern void ssb_chipco_set_clockmode(struct ssb_chipcommon *cc,
 				     enum ssb_clkmode mode);
 
+extern void ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, 
+					  u32 ticks);
+
 #ifdef CONFIG_SSB_SERIAL
 extern int ssb_chipco_serial_init(struct ssb_chipcommon *cc,
 				  struct ssb_serial_port *ports);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ