kopia lustrzana https://gitlab.com/sane-project/website
120 wiersze
5.2 KiB
HTML
120 wiersze
5.2 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|||
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|||
|
<HTML>
|
|||
|
<HEAD>
|
|||
|
<TITLE>sane-devel: Re: Problem with kernel 2.4ac9, ava1505, snapscan12</TITLE>
|
|||
|
<META NAME="Author" CONTENT="Erik Inge Bols<6C> (knan@mo.himolde.no)">
|
|||
|
<META NAME="Subject" CONTENT="Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4">
|
|||
|
</HEAD>
|
|||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|||
|
<H1>Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4</H1>
|
|||
|
<!-- received="Sun Jan 14 10:10:14 2001" -->
|
|||
|
<!-- isoreceived="20010114181014" -->
|
|||
|
<!-- sent="Sun, 14 Jan 2001 19:53:44 +0100 (CET)" -->
|
|||
|
<!-- isosent="20010114185344" -->
|
|||
|
<!-- name="Erik Inge Bols<6C>" -->
|
|||
|
<!-- email="knan@mo.himolde.no" -->
|
|||
|
<!-- subject="Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4" -->
|
|||
|
<!-- id="Pine.LNX.4.21.0101141944220.31957-100000@yme.mo.himolde.no" -->
|
|||
|
<!-- inreplyto="3A61E934.605B85C3@interlog.com" -->
|
|||
|
<STRONG>From:</STRONG> Erik Inge Bols<6C> (<A HREF="mailto:knan@mo.himolde.no?Subject=Re:%20Problem%20with%20kernel%202.4ac9,%20ava1505,%20snapscan1236s,%20sane1.0.4&In-Reply-To=<Pine.LNX.4.21.0101141944220.31957-100000@yme.mo.himolde.no>"><EM>knan@mo.himolde.no</EM></A>)<BR>
|
|||
|
<STRONG>Date:</STRONG> Sun Jan 14 2001 - 10:53:44 PST
|
|||
|
<P>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|||
|
<UL>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0141.html">Erik Inge Bols<6C>: "Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#142">[ date ]</A>
|
|||
|
<A HREF="index.html#142">[ thread ]</A>
|
|||
|
<A HREF="subject.html#142">[ subject ]</A>
|
|||
|
<A HREF="author.html#142">[ author ]</A>
|
|||
|
</UL>
|
|||
|
<HR NOSHADE><P>
|
|||
|
<!-- body="start" -->
|
|||
|
<P>
|
|||
|
On Sun, 14 Jan 2001, Douglas Gilbert wrote:
|
|||
|
<BR>
|
|||
|
<EM>>> [snapscan] request_sense
|
|||
|
</EM><BR>
|
|||
|
<EM>>> [snapscan] sense_handler(5, 0xbffff324, 0x8050c90)
|
|||
|
</EM><BR>
|
|||
|
<EM>>> [snapscan] sense_handler: sense key is invalid.
|
|||
|
</EM><BR>
|
|||
|
<P>The problem was here. The aha152x.c driver filtered out request_sense
|
|||
|
<BR>
|
|||
|
commands and always returned 0 on them. (At least that's my layman's
|
|||
|
<BR>
|
|||
|
understanding of the problem.)
|
|||
|
<BR>
|
|||
|
<P>int aha152x_queue(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *))
|
|||
|
<BR>
|
|||
|
{
|
|||
|
<BR>
|
|||
|
if(*SCpnt->cmnd == REQUEST_SENSE) {
|
|||
|
<BR>
|
|||
|
SCpnt->result = 0;
|
|||
|
<BR>
|
|||
|
done(SCpnt);
|
|||
|
<BR>
|
|||
|
<P> return SUCCESS;
|
|||
|
<BR>
|
|||
|
}
|
|||
|
<BR>
|
|||
|
<P> return aha152x_internal_queue(SCpnt, 0, 0, 0, done);
|
|||
|
<BR>
|
|||
|
}
|
|||
|
<BR>
|
|||
|
<P>Removing everything but the "return" line fixed the problem :)
|
|||
|
<BR>
|
|||
|
<P>Thanks to Marcel Martin for the fix :)
|
|||
|
<BR>
|
|||
|
<P>P.S. Judging from a quick look, a few other drivers may have the same
|
|||
|
<BR>
|
|||
|
problem. aha1542.c at least seems to be affected. I have no such card, so
|
|||
|
<BR>
|
|||
|
can't test.
|
|||
|
<BR>
|
|||
|
<P>The scanner works fine now, whee :)=
|
|||
|
<BR>
|
|||
|
<P><PRE>
|
|||
|
--
|
|||
|
Erik I. Bols<6C> | email: <knan at mo.himolde.no>
|
|||
|
The UNIX philosophy basically involves giving you enough rope to
|
|||
|
hang yourself. And then a couple of feet more, just to be sure.
|
|||
|
<P><P><P><P>--
|
|||
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|||
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Problem%20with%20kernel%202.4ac9,%20ava1505,%20snapscan1236s,%20sane1.0.4&In-Reply-To=<Pine.LNX.4.21.0101141944220.31957-100000@yme.mo.himolde.no>">majordomo@mostang.com</A>
|
|||
|
</PRE>
|
|||
|
<P><!-- body="end" -->
|
|||
|
<HR NOSHADE>
|
|||
|
<UL>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0141.html">Erik Inge Bols<6C>: "Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0143.html">Douglas Gilbert: "Re: Problem with kernel 2.4ac9, ava1505, snapscan1236s, sane1.0.4"</A>
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#142">[ date ]</A>
|
|||
|
<A HREF="index.html#142">[ thread ]</A>
|
|||
|
<A HREF="subject.html#142">[ subject ]</A>
|
|||
|
<A HREF="author.html#142">[ author ]</A>
|
|||
|
</UL>
|
|||
|
<!-- trailer="footer" -->
|
|||
|
<HR NOSHADE>
|
|||
|
<P>
|
|||
|
<SMALL>
|
|||
|
<EM>
|
|||
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|||
|
: <EM>Sun Jan 14 2001 - 10:11:54 PST</EM>
|
|||
|
</EM>
|
|||
|
</SMALL>
|
|||
|
</BODY>
|
|||
|
</HTML>
|