2001-03-03 00:44:39

by Tim Waugh

[permalink] [raw]
Subject: [patch] 2.4.3-pre1: parport fix (nAutoFd)

Linus,

Here is a patch that makes 2.4.x's behaviour more closely match that
of 2.2.x when a nibble mode read goes wrong. It prevents reading
processes from getting stuck in certain circumstances.

Tim.
*/

2001-03-02 Tim Waugh <[email protected]>

* drivers/parport/ieee1284_ops.c (parport_ieee1284_read_nibble):
Reset nAutoFd on timeout. Matches 2.2.x behaviour.

--- linux/drivers/parport/ieee1284_ops.c.autofd Sat Mar 3 00:37:23 2001
+++ linux/drivers/parport/ieee1284_ops.c Sat Mar 3 00:37:23 2001
@@ -189,6 +189,7 @@
DPRINTK (KERN_DEBUG
"%s: Nibble timeout at event 9 (%d bytes)\n",
port->name, i/2);
+ parport_frob_control (port, PARPORT_CONTROL_AUTOFD, 0);
break;
}