patch-2.3.40 linux/drivers/char/pcwd.c
Next file: linux/drivers/char/radio-cadet.c
Previous file: linux/drivers/char/pcmcia/serial_cs.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Thu Jan 20 10:44:46 2000
- Orig file:
v2.3.39/linux/drivers/char/pcwd.c
- Orig date:
Fri Jan 7 19:13:21 2000
diff -u --recursive --new-file v2.3.39/linux/drivers/char/pcwd.c linux/drivers/char/pcwd.c
@@ -34,6 +34,8 @@
* 971222 Changed open/close for temperature handling
* Michael Meskes <meskes@debian.org>.
* 980112 Used minor numbers from include/linux/miscdevice.h
+ * 990403 Clear reset status after reading control status register in
+ * pcwd_showprevstate(). [Marc Boucher <marc@mbsi.ca>]
* 990605 Made changes to code to support Firmware 1.22a, added
* fairly useless proc entry.
* 990610 removed said useless proc code for the merge <alan>
@@ -183,8 +185,10 @@
if (revision == PCWD_REVISION_A)
initial_status = card_status = inb(current_readport);
- else
+ else {
initial_status = card_status = inb(current_readport + 1);
+ outb_p(0x00, current_readport + 1); /* clear reset status */
+ }
if (revision == PCWD_REVISION_A) {
if (card_status & WD_WDRST)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)