patch-2.1.93 linux/drivers/misc/parport_pc.c
Next file: linux/drivers/net/3c59x.c
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sat Apr 4 09:16:49 1998
- Orig file:
v2.1.92/linux/drivers/misc/parport_pc.c
- Orig date:
Wed Apr 1 20:11:52 1998
diff -u --recursive --new-file v2.1.92/linux/drivers/misc/parport_pc.c linux/drivers/misc/parport_pc.c
@@ -458,6 +458,7 @@
static int parport_SPP_supported(struct parport *pb)
{
/* Do a simple read-write test to make sure the port exists. */
+ parport_pc_write_econtrol(pb, 0xc);
parport_pc_write_control(pb, 0xc);
parport_pc_write_data(pb, 0xaa);
if (parport_pc_read_data(pb) != 0xaa) return 0;
@@ -894,6 +895,7 @@
p->flags |= PARPORT_FLAG_COMA;
/* Done probing. Now put the port into a sensible start-up state. */
+ parport_pc_write_econtrol(p, 0xc);
parport_pc_write_control(p, 0xc);
parport_pc_write_data(p, 0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov