[sane-devel] strange SCSI behaviour
Alessandro Zummo
azummo-lists at towertech.it
Sat Nov 25 10:14:02 CET 2006
Hello,
I just discovered the problem I had with my FilmScan 200
is not related to any particular command but just to the
first one sent to the scanner (just after modprobe)
After that one, which receives a sense condition, everything
works perfectly.
So, if there's a way to have the control immediately returned
to the driver as soon as the sense condition is issued, I would
just try reissuing the command and that should fix my problem.
Any hint on how to do that?
thanks!
[epson2] inquiry: EPSON FilmScan 200 1.01
[epson2] model : FilmScan 200 1.01
[epson2] reset
[epson2] epson_cmd_simple: size = 2
[epson2] epson_send: ESC @
[sanei_scsi] scsi_req_enter: entered 0xb7c75008
[sanei_scsi] sanei_scsi.issue: 0xb7c75008
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
[sanei_scsi] sanei_scsi_req_wait: waiting for 0xb7c75008
[sanei_scsi] sanei_scsi.issue: 0xb7c75008
[sanei_scsi] sanei_scsi_req_wait: read 64 bytes
[sanei_scsi] sanei_scsi_req_wait: SCSI command complained: Success
[sanei_scsi] sense buffer: 70 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00
[sanei_scsi] target status: 02 host status: 0000 driver status: 0008
[sanei_scsi] sanei_scsi_req_wait: SG driver returned resid 2
[sanei_scsi] NOTE: This value may be bogus
[sanei_scsi] scsi_req_enter: entered 0xb7c75008
[sanei_scsi] sanei_scsi.issue: 0xb7c75008
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
[sanei_scsi] sanei_scsi_req_wait: waiting for 0xb7c75008
[sanei_scsi] sanei_scsi.issue: 0xb7c75008
[~2 min delay here, the the aic7xxx driver queues an ABORT and the scanner resets ]
[sanei_scsi] sanei_scsi_req_wait: read 64 bytes
[sanei_scsi] sanei_scsi_req_wait: SCSI command complained: Success
[sanei_scsi] sense buffer: 70 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00
[sanei_scsi] target status: 00 host status: 0001 driver status: 0000
[sanei_scsi] sanei_scsi_req_wait: SG driver returned resid 1
[sanei_scsi] NOTE: This value may be bogus
[epson2] epson_recv: expected = 1, got = 0
[epson2] epson_cmd_simple: failed, Device busy
this command has failed, but subsequent ones work
correctly.
--
Best regards,
Alessandro Zummo,
Tower Technologies - Turin, Italy
http://www.towertech.it
More information about the sane-devel
mailing list