[PATCH] Parport lockups with Connectix Quickcam VC

Ryan O'Connell (nemesis@eh.org)
Tue, 17 Nov 1998 15:07:28 -0000 (GMT)


This message is in MIME format
--_=XFMail.1.3.p0.Linux:981117150728:126=_
Content-Type: text/plain; charset=us-ascii

-----BEGIN PGP SIGNED MESSAGE-----

Hi,

My Linux systems hang during booting if there is a QuickCam VC connected to
a Parallel port and PnP Parport probing is enabled. They continue again as
soon as you unplug the camera, but it's a pain when dual-booting. Here's a
fix against 2.1.128 tested on two different machines both as a module and
compiled in. Apoligies if the formatting gets munged, xfmail is being a pig.

Ryan O'Connell - http://mipc-01.brunel.ac.uk:8080/ - <nemesis@eh.org>

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBNlGRMHaLBcMKBcNNAQGxiQQAmLDwur8lTaEmMeIE+HEO7jgsSPWuAQnY
OTBSqar7SQSAKZVEMxRbT4lpGpuO++x3e+zHga2tHsrH+T+16wxtO/tG4tRmfmOn
y2ZYyhgjXpbGkqz63u0QkGxmxTBqCC9J6bg2ssKfcEfWlb+2HljJATgJJkJKEmiX
+yzyFjFAOns=
=CiRa
-----END PGP SIGNATURE-----

--_=XFMail.1.3.p0.Linux:981117150728:126=_
Content-Disposition: attachment; filename="parport-patch"
Content-Transfer-Encoding: none
Content-Description: parport-patch
Content-Type: text/plain; charset=us-ascii; name=parport-patch; SizeOnDisk=535

--- linux-2.1.128/drivers/pnp/parport_probe.c Fri Nov 6 05:25:24 1998
+++ linux/drivers/pnp/parport_probe.c Mon Nov 16 01:10:48 1998
@@ -54,8 +54,10 @@
unsigned int count = 0;
unsigned char z=0;
unsigned char Byte=0;
+ long igiveupat=jiffies+5*HZ;

- for (i=0; ; i++) {
+ for (i=0; time_before(jiffies, igiveupat); i++) {
+ /* if(current->need_resched) schedule(); */
parport_write_control(port, parport_read_control(port) | 2); /* AutoFeed high
*/
if (parport_wait_peripheral(port, 0x40, 0)) {
#ifdef DEBUG_PROBE

--_=XFMail.1.3.p0.Linux:981117150728:126=_--
End of MIME message

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/