On Wed, 16 Feb 2000, Tim Waugh wrote:
> 5. The software should switch to mode 011 when bits 0 and 1 of DCR are 0.
>
> 6. The software should switch to mode 010 when bit 0 of DCR is 0.
I think this patch fixes these cases.
Tim.
*/
Index: drivers/parport/parport_pc.c
===================================================================
RCS file: /usr/local/src/cvsroot/linux/drivers/parport/parport_pc.c,v
retrieving revision 1.26
diff -d -u -r1.26 parport_pc.c
--- drivers/parport/parport_pc.c 2000/02/22 15:03:57 1.26
+++ drivers/parport/parport_pc.c 2000/02/22 16:16:34
@@ -681,6 +681,7 @@
/* Set up parallel port FIFO mode.*/
parport_pc_data_forward (port); /* Must be in PS2 mode */
+ parport_pc_frob_control (port, PARPORT_CONTROL_STROBE, 0);
change_mode (port, ECR_PPF); /* Parallel port FIFO */
port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA;
@@ -747,6 +748,10 @@
/* Set up ECP parallel port mode.*/
parport_pc_data_forward (port); /* Must be in PS2 mode */
+ parport_pc_frob_control (port,
+ PARPORT_CONTROL_STROBE |
+ PARPORT_CONTROL_AUTOFD,
+ 0);
change_mode (port, ECR_ECP); /* ECP FIFO */
port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA;
@@ -850,6 +855,10 @@
/* Set up ECP parallel port mode.*/
parport_pc_data_reverse (port); /* Must be in PS2 mode */
+ parport_pc_frob_control (port,
+ PARPORT_CONTROL_STROBE |
+ PARPORT_CONTROL_AUTOFD,
+ 0);
change_mode (port, ECR_ECP); /* ECP FIFO */
port->ieee1284.phase = IEEE1284_PH_REV_DATA;
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Tue Feb 22 2000 - 11:16:28 EST