patch-2.1.73 linux/drivers/char/pcwd.c

Next file: linux/drivers/net/3c505.c
Previous file: linux/drivers/char/pc_keyb.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.72/linux/drivers/char/pcwd.c linux/drivers/char/pcwd.c
@@ -30,6 +30,7 @@
  *		code bits, and added compatibility to 2.1.x.
  * 970912       Enabled board on open and disable on close.
  * 971107	Took account of recent VFS changes (broke read).
+ * 971210       Disable board on initialisation in case board already ticking.
  */
 
 #include <linux/module.h>
@@ -578,6 +579,12 @@
 	debug_off();
 
 	pcwd_showprevstate();
+
+	/*  Disable the board  */
+	if (revision == PCWD_REVISION_C) {
+		outb_p(0xA5, current_readport + 3);
+		outb_p(0xA5, current_readport + 3);
+	}
 
 	if (revision == PCWD_REVISION_A)
 		request_region(current_readport, 2, "PCWD Rev.A (Berkshire)");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov