Re: [PARPORT] irqs


Tim Waugh (tim@cyberelk.demon.co.uk)
Sat, 4 Apr 1998 21:38:16 +0100 (BST)


On Sat, 4 Apr 1998, Philip Blundell wrote:

> Hi.
>
> Here's a patch I made to change the irq-related behaviour of parport slightly.
> Please give it a try.

Phil, you're a hero. ;-)

> BTW, some recent change seems to have broken things slightly for me. If
> I set my port to ECP mode and load parport_pc it detects it OK; if I
> then unload and reload the module it fails to find the port at all. Has
> anybody else seen this?

Yes. Have you actually tried printing? Some people were reporting
duplicated characters or just no operation at all. Try this:

--- /big/linux-2.1.92/drivers/misc/parport_pc.c Thu Apr 2 12:47:47 1998
+++ linux/drivers/misc/parport_pc.c Fri Apr 3 13:15:55 1998
@@ -458,6 +458,7 @@
 static int parport_SPP_supported(struct parport *pb)
 {
         /* Do a simple read-write test to make sure the port exists. */
+ parport_pc_write_econtrol(pb, 0xc);
         parport_pc_write_control(pb, 0xc);
         parport_pc_write_data(pb, 0xaa);
         if (parport_pc_read_data(pb) != 0xaa) return 0;
@@ -894,6 +895,7 @@
         p->flags |= PARPORT_FLAG_COMA;
 
         /* Done probing. Now put the port into a sensible start-up state. */
+ parport_pc_write_econtrol(p, 0xc);
         parport_pc_write_control(p, 0xc);
         parport_pc_write_data(p, 0);

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:17:35 EST