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 <twaugh@redhat.com>
* 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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/