Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem

From: anvil@amin.unice.fr
Date: Mon Feb 19 2001 - 16:57:47 PST

  • Next message: jhall+sane-devel@UU.NET: "Re: HP5300C - USB-problems?"

    Hello.
    I did check the archive for this problem and some people said it had
    worked after but..
    I did patch linux-2.4.0 aha152x driver with this :

    @@ -932,6 +936,8 @@
                    printk(KERN_ERR "aha152x%d: catched software interrupt for unknown controller.\n", HOSTNO);
     
            HOSTDATA(shpnt)->swint++;
    +
    + SETPORT(DMACNTRL0, INTEN);
     }
     
     
    @@ -1274,7 +1280,7 @@
                    SETPORT(SIMODE0, 0);
                    SETPORT(SIMODE1, 0);
     
    - ok = request_irq(shpnt->irq, swintr, SA_INTERRUPT, "aha152x", shpnt);
    + ok = request_irq(shpnt->irq, swintr, SA_INTERRUPT|SA_SHIRQ, "aha152x", shpnt);
                    if (ok < 0) {
                            if (ok==-EINVAL)
                                    printk(KERN_ERR "aha152x%d: bad IRQ %d.\n", HOSTNO, shpnt->irq);
    @@ -1308,6 +1314,8 @@
                                    printk("failed.\n");
                            }
     
    + SETPORT(DMACNTRL0, INTEN);

    I used rpm packages from redhat fisher 7.1beta (aka sane-1.0.3-10 and
    xsane-0.62-4). xsane find the device, but when i try to acquire a
    preview, lots of "(scsi0:2:0) no buffers left for 128(128) bytes (data
    overrun!?)" appears in dmesg command..

    I don't know how to make work this scanner anymore since if i reboot in
    2.2.1x kernel there's no problems. Could you please help me ?

           Dams

    -- 
    	 Dams Nadé
    DEA Informatique : anvil@amin.unice.fr
    Association AMIN : http://amin.unice.fr/
    Irc Operator     : Anvil on IrcNet.Eurecom.Fr
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Mon Feb 19 2001 - 16:54:24 PST