patch-2.2.10 linux/drivers/misc/parport_pc.c
Next file: linux/drivers/misc/parport_share.c
Previous file: linux/drivers/char/wdt.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Jun 1 16:43:43 1999
- Orig file:
v2.2.9/linux/drivers/misc/parport_pc.c
- Orig date:
Tue May 11 13:10:29 1999
diff -u --recursive --new-file v2.2.9/linux/drivers/misc/parport_pc.c linux/drivers/misc/parport_pc.c
@@ -371,12 +371,12 @@
* copy. Some ports _do_ allow reads, so bypass the software
* copy here. In addition, some bits aren't writable. */
r = inb (pb->base+CONTROL);
- if ((r & 0x3f) == w) {
+ if ((r & 0xf) == w) {
w = 0xe;
parport_pc_write_control (pb, w);
r = inb (pb->base+CONTROL);
parport_pc_write_control (pb, 0xc);
- if ((r & 0x3f) == w)
+ if ((r & 0xf) == w)
return PARPORT_MODE_PCSPP;
}
@@ -832,8 +832,11 @@
* Put the ECP detected port in the more SPP like mode.
*/
parport_pc_write_econtrol(p, 0x0);
- parport_pc_write_control(p, 0xc);
+ parport_pc_write_control(p, 0x8);
parport_pc_write_data(p, 0);
+ udelay (50);
+ parport_pc_write_control(p, 0xc);
+ udelay (50);
if (parport_probe_hook)
(*parport_probe_hook)(p);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)