[PARPORT] PATCH 2.4.0.9.1: parport_pc fix for Via motherboard support

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Sun Sep 17 2000 - 03:38:24 EDT

  • Next message: Aaron Cohen: "Re: [PARPORT] PATCH 2.4.0.9.1: parport_pc fix for Via motherboard support"

     

    diff -urN vanilla/linux-2.4.0-test9-pre1/drivers/parport/ChangeLog linux_2_3/drivers/parport/ChangeLog
    --- vanilla/linux-2.4.0-test9-pre1/drivers/parport/ChangeLog Mon Jul 24 21:59:27 2000
    +++ linux_2_3/drivers/parport/ChangeLog Sat Sep 16 20:35:53 2000
    @@ -1,3 +1,8 @@
    +2000-09-16 Cesar Eduardo Barros <cesarb@nitnet.com.br>
    +
    + * parport_pc.c (sio_via_686a_probe): Handle case
    + where hardware returns 255 for IRQ or DMA.
    +
     2000-07-20 Eddie C. Dost <ecd@skynet.be>
     
             * share.c (attach_driver_chain): attach[i](port) needs to be
    diff -urN vanilla/linux-2.4.0-test9-pre1/drivers/parport/parport_pc.c linux_2_3/drivers/parport/parport_pc.c
    --- vanilla/linux-2.4.0-test9-pre1/drivers/parport/parport_pc.c Sun Aug 6 14:24:58 2000
    +++ linux_2_3/drivers/parport/parport_pc.c Sat Sep 16 20:33:03 2000
    @@ -2239,11 +2239,13 @@
             irq = ((irq >> 4) & 0x0F);
     
             /* filter bogus IRQs */
    + /* 255 means NONE, and is bogus as well */
             switch (irq) {
             case 0:
             case 2:
             case 8:
             case 13:
    + case 255:
                     irq = PARPORT_IRQ_NONE;
                     break;
     
    @@ -2252,7 +2254,9 @@
             }
     
             /* if ECP not enabled, DMA is not enabled, assumed bogus 'dma' value */
    - if (!have_eppecp)
    + /* 255 means NONE. Looks like some BIOS don't set the DMA correctly
    + * even on ECP mode */
    + if (!have_eppecp || dma == 255)
                     dma = PARPORT_DMA_NONE;
     
             /* finally, do the probe with values obtained */

    -- 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 2b29 : Sun Sep 17 2000 - 05:50:05 EDT