Re: [PARPORT] ppdev: PPSETPHASE?


Thomas Sailer (sailer@ife.ee.ethz.ch)
Fri, 30 Jul 1999 17:50:26 +0200


Tim Waugh wrote:
>
> On Thu, 29 Jul 1999, Thomas Sailer wrote:
>
> > I don't know what you mean by "people", but I assume I'm included
> > in that group 8-)
>
> Yeah: you, someone else who emailed me, and now me.
>
> > In my case, the peripheral does the handshaking of the direction as it
> > should, it just doesn't do the mode negotiation.
>
> Are you sure? Have you figured out how the ECP function is returning
> immediately without data?

It is indeed in the direction switching from forward to reverse.

However, are you sure Tim that your code negotiates correctly?

How about the following diff?

That way, at least it works slightly longer 8-)

Tom

--- orig_ieee1284_ops.c Fri Jul 30 17:47:07 1999
+++ ieee1284_ops.c Fri Jul 30 17:47:57 1999
@@ -344,14 +344,14 @@
         /* Event 38: Set nAutoFd low */
         parport_frob_control (port,
                               PARPORT_CONTROL_AUTOFD,
- PARPORT_CONTROL_AUTOFD);
+ 0);
         parport_data_reverse (port);
         udelay (5);
 
         /* Event 39: Set nInit low to initiate bus reversal */
         parport_frob_control (port,
                               PARPORT_CONTROL_INIT,
- PARPORT_CONTROL_INIT);
+ 0);
 
         /* Event 40: PError goes low */
         retval = parport_wait_peripheral (port,

-- 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 Fri 30 Jul 1999 - 11:51:56 EDT