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


Tim Waugh (tim@cyberelk.demon.co.uk)
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).

Tim.
*/

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

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- 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