Messages in this thread Patch in this message | | | Date | Tue, 17 Nov 1998 15:07:28 -0000 (GMT) | From | "Ryan O'Connell" <> | Subject | [PATCH] Parport lockups with Connectix Quickcam VC |
| |
-----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----- --- 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
| |