Re: Problem with snapscan, aha1505, linux kernel 2.2.9

Wolfgang Denk (wd@denx.de)
Sat, 03 Jul 1999 16:48:28 +0200

Francois Desarmenien (desar@club-internet.fr) wrote:

> The problem seems to lie in the sg driver, not specifically in aha1505 as I
> mentionned in another post, with an aha2940 (aic7xxx driver) it worked fine with
> 2.2.3 but *not* in 2.2.9 nor 2.2.10.

I verified this with a 2.2.10 kernel; I'm using it with the
AVA-1505AE ISA card that came with a SnapScan 1236. I could not get
it working with the 2.2.10 kernel, but replacing the `sg' driver
(include/scsi/sg.h and drivers/scsi/sg.c) with the files form 2.2.5
got it working.

However, I still see some strange things happen:

* During initialization (self test?) I see a lot of syslog messages
(but then it's working):

aha152x: more data than expected (128 bytes)
aha152x: data (ff ff ff ff ab ff ab cb 7 ff ff ff ff ff ff ff ff c5 86 55 32 21 1b 19 5 6 6 6 6 6 6 6 6 7 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 6 d 11 11 11 11 11 11 11 ff ff ff ff ff ff ff ff ab ff ab ca 6 ff ff ff ff ff ff ff ff c5 86 55 32 21 1b 19 5 6 6 6 )
aha152x: data ( 6 6 6 6 6 6 7 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 6 7 7 d 11 11 11 11 11 12 11 ff ff ff ff ff ff ff ff ab ff ab c9 7 ff ff ff ff ff ff ff ff c5 86 55 32 21 1b 19 5 6 7 6 6 6 6 6 6 6 6 6 6 7 7 7 6 6 6 7 7 7 7 7 7 7 7 7 6 7 7 6 )
aha152x: more data than expected (128 bytes)
aha152x: data ( 6 7 7 7 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 6 7 7 7 7 7 7 7 7 6 6 7 7 d f 10 10 11 11 11 11 ff ff ff ff ff ff ff ff ab ff ab c8 6 ff ff ff ff ff ff ff ff c5 86 55 32 21 1b 19 5 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 6 7 7 7 7 6 7 7 7 7 7 7 6 6 6 7 7 6 6 7 7 7 6 7 7 7 7 7 7 7 7 7 7 7 7 7 )
aha152x: more data than expected (128 bytes)
aha152x: data ( 7 7 7 7 d 11 10 10 11 11 11 12 ff ff ff ff ff ff ff ff ab ff ab c7 6 ff ff ff ff ff ff ff ff c5 86 55 32 21 1b 19 5 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 6 7 6 6 7 7 7 7 6 6 6 6 6 6 7 7 7 7 7 7 6 6 6 6 7 6 6 7 7 6 6 6 6 7 7 d 10 11 11 10 11 11 11 ff ff ff ff ff ff ff ff ab ff ab c6 6 ff ff ff )
aha152x: more data than expected (128 bytes)
aha152x: data (ff ff ff ff ff c5 86 55 32 21 1b 19 5 6 6 6 6 6 6 6 6 7 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 6 6 6 6 6 6 6 6 6 6 6 6 7 6 6 7 7 7 7 6 6 7 6 6 6 6 7 7 7 6 6 7 6 6 6 7 6 d 11 11 11 11 11 11 12 ff ff ff ff ff ff ff ff ab ff ab c5 6 ff ff ff ff ff ff ff ff c5 86 55 32 21 1b 19 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 )
...

* Probably interesting fact is that with the 2.2.10 driver the same
thing is happening (but then I can't access the driver, and the
scanner LED continues blinking). But here the syslog messages look
like that:

aha152x: more data than expected (132 bytes)
aha152x: data ( 6 6 6 6 6 6 6 7 7 7 6 6 6 6 6 6 6 6 6 6 7 7 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 6 6 7 6 6 6 6 6 7 c 11 11 11 11 11 11 11 ff ff ff ff ff ff ff ff ab ff ab ca 6 ff ff ff ff ff ff ff ff d8 9e 55 36 31 26 25 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 6 6 6 7 6 6 6 6 6 6 6 7 7 6 6 7 7 )
aha152x: more data than expected (132 bytes)
aha152x: data ( 6 6 6 6 7 6 6 6 6 6 6 6 6 7 7 6 6 6 6 6 6 6 6 7 d 10 10 10 10 10 11 11 ff ff ff ff ff ff ff ff ab ff ab c9 6 ff ff ff ff ff ff ff ff d8 9e 55 36 31 26 25 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 c 11 10 10 10 11 11 11 )
aha152x: more data than expected (132 bytes)
aha152x: data (ff ff ff ff ff ff ff ff ab ff ab c8 6 ff ff ff ff ff ff ff ff d8 9e 55 36 31 26 25 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 c 11 10 10 10 10 11 11 ff ff ff ff ff ff ff ff ab ff ab c7 6 ff ff ff ff ff ff ff ff d8 9e 55 36 31 26 25 5 5 6 6 )
aha152x: more data than expected (132 bytes)
aha152x: data ( 6 6 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 d 11 10 10 10 10 11 11 ff ff ff ff ff ff ff ff ab ff ab c6 6 ff ff ff ff ff ff ff ff d8 9e 55 36 31 26 25 4 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 )

So it's 132 instead of 128 "expected" bytes...

Wolfgang

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Anything free is worth what you pay for it.

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