Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem

From: Douglas Gilbert (dgilbert@interlog.com)
Date: Mon Feb 19 2001 - 20:21:14 PST

  • Next message: anvil@amin.unice.fr: "Re: Snapscan SCSI 1236s + aha152x + linux 2.4.0 = problem"

    That doesn't seem like the full aha152x patch. The
    one supplied by the driver's author for inclusion
    in lk 2.4.2 is attached.

    Doug Gilbert

    anvil@amin.unice.fr wrote:
    >
    > 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 ?


    --
    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 - 20:19:37 PST