patch-2.2.13 linux/drivers/char/pcwd.c
Next file: linux/drivers/char/pms.c
Previous file: linux/drivers/char/n_tty.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Oct 19 17:14:00 1999
- Orig file:
v2.2.12/linux/drivers/char/pcwd.c
- Orig date:
Tue Oct 19 17:10:37 1999
diff -u --recursive --new-file v2.2.12/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>]
*/
#include <linux/module.h>
@@ -177,8 +179,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)