Re: [PARPORT] Printer doesn't work with Parallel port Zip drive,still

Tim Waugh (
Mon, 6 Sep 1999 20:39:33 +0100 (GMT)

On Mon, 6 Sep 1999, Matthew Vanecek wrote:

> I'll read through the ppa.c as I have time this week, and try to figure
> out what's happening. My problem is, I know *how* to program C,
> theoretically and logically, but don't know enough practical C

You could start off just modifying delays and things, I guess. Here's a
quick hack to see if waiting 5ms instead of 1ms before sending a
disconnect sequence at initialisation time makes any difference. The
thing to test is whether printing works after ppa has just loaded (and the
drive hasn't been accessed yet).


Index: ppa.c
RCS file: /big/cvsroot/linux/drivers/scsi/ppa.c,v
retrieving revision
diff -u -p -r1.1.1.1 ppa.c
--- ppa.c 1999/08/03 19:10:01
+++ ppa.c 1999/09/06 19:35:31
@@ -1084,7 +1084,7 @@ static int device_check(int host_no)
         ppa_connect(host_no, CONNECT_EPP_MAYBE);
- udelay(1000);
+ mdelay(5);
         return 0;

-- To unsubscribe, send mail to: --
-- with the single word "unsubscribe" in the body of the message. --

This archive was generated by hypermail 2.0b3 on Mon 06 Sep 1999 - 15:56:37 EDT