Re: [PARPORT] Fast polling


Tim Waugh (tim@cyberelk.demon.co.uk)
Thu, 17 Dec 1998 20:16:28 +0000 (GMT)


On Thu, 17 Dec 1998, Andrea Arcangeli wrote:

> @@ -129,7 +123,7 @@
> goto stop;
>
> /* Yield the port for a while. */
> - if (count && polling (dev))
> + if (count)
> parport_release (dev);
> timer.expires = jiffies + wait;
> timer.data = (unsigned long) port;
> @@ -137,10 +131,10 @@
> add_timer (&timer);
> down_interruptible (&port->ieee1284.sem);
> del_timer (&timer);
> - if (count && polling (dev))
> + if (count)
> parport_claim_or_block (dev);

Andrea, this patch is wrong, as I've said before. If we are waiting for
an interrupt, we need to have the port claimed.

[Even if that weren't so, what would be the use of just checking to see if
 it's the first time round the loop ("if (count)"?), if it wasn't going to
 influence anything?]

Tim.
*/

-- 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 Wed 30 Dec 1998 - 10:18:57 EST