linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] 2.4.3-pre1: parport fix (nAutoFd)
@ 2001-03-03  0:44 Tim Waugh
  0 siblings, 0 replies; only message in thread
From: Tim Waugh @ 2001-03-03  0:44 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

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;
 		}
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-03-03  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-03  0:44 [patch] 2.4.3-pre1: parport fix (nAutoFd) Tim Waugh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).