lkml.org 
[lkml]   [2001]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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 <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/
\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.345 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site