[PARPORT] 2.2.9 parport_pc fix


Tim Waugh (tim@cyberelk.demon.co.uk)
Tue, 1 Jun 1999 22:58:12 +0100 (GMT)


Here's a small fix for 2.2.9, which I've sent to Linus for 2.2.10. Thanks
to Andy Tomlin for testing it out.

Tim.
*/

--- linux-2.2.10-pre1/drivers/misc/parport_pc.c Tue Jun 1 22:40:05 1999
+++ linux/drivers/misc/parport_pc.c Tue Jun 1 22:52:31 1999
@@ -371,12 +371,12 @@
          * copy. Some ports _do_ allow reads, so bypass the software
          * copy here. In addition, some bits aren't writable. */
         r = inb (pb->base+CONTROL);
- if ((r & 0x3f) == w) {
+ if ((r & 0xf) == w) {
                 w = 0xe;
                 parport_pc_write_control (pb, w);
                 r = inb (pb->base+CONTROL);
                 parport_pc_write_control (pb, 0xc);
- if ((r & 0x3f) == w)
+ if ((r & 0xf) == w)
                         return PARPORT_MODE_PCSPP;
         }
 

-- 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 Tue 01 Jun 1999 - 18:17:20 EDT