lkml.org 
[lkml]   [2001]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Problems with SCSI on 2.4.X
david@2gen.com wrote:

> I'm having some problems using SCSI-generic (sg loaded as module) to
> access my scanner on linux 2.4 (using SANE).
>
> [snip output showing timeouts]

This is most likely caused by a bug in SANE 1.0.3 and
1.0.4 which sets timeouts on commands to 10 seconds
rather than 10 minutes. The SANE code detects the new
sg driver in lk 2.4.x and mistakenly shortens the
timeout. This has been fixed in SANE's CVS (and
RedHat's 7.1 beta (fisher)).

Fix for SANE 1.0.4 : in file
sane-backends-1.0.4/sanei/sanei_scsi.c change line 1893
from:
req->sgdata.sg3.hdr.timeout = 10000;
to
req->sgdata.sg3.hdr.timeout = 10 * 60 * 1000;


If you look at the FAQ on the sg web site
( http://www.torque.net/sg ) under the SANE entry you will
find the same information ...

Doug Gilbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.039 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site