>From the looks of this, you've hacked up the usb-storage driver to talk to
this device.
It appears that you're basically not communicating with a bulk-only
protocol that you're trying to make work. The signatures on the status
wrapper are wrong.
I suggest that, instead of starting with the usb-storage driver, you might
have better luck starting from the ground up.
Matt Dharm
On Sun, 9 Apr 2000, Oliver Neukum wrote:
> Hi,
>
> I've made usb-storage recognise the Microtek X6 scanner. From a trace
> under Windows98 we know that it uses a protocol which sends raw SCSI
> commands over one pipe and reads the result from another pipe. It uses a
> third pipe to read results from READ IMAGE in larger chunks. For now I
> used transparent SCSI over bulk transport. This gives strange results.
> To me it looks like the scanner is putting out excessive bogus data as a
> result of TEST_UNIT_READY. But I would like to ask for help.
>
> TIA
> Oliver Neukum
>
> Apr 9 15:42:01 ghanima kernel: usb.c: registered new driver usb-storage
> Apr 9 15:42:01 ghanima kernel: usb-storage: USB Mass Storage device detected
> Apr 9 15:42:01 ghanima kernel: This is work in progress.
> Apr 9 15:42:01 ghanima kernel: usb-storage: Endpoints In 2 Out 1 Int 0 Second In 3
> Apr 9 15:42:01 ghanima kernel: usb-storage: Result from usb_set_interface is 0
> Apr 9 15:42:01 ghanima kernel: usb-storage: New GUID 05da00990000000000000000
> Apr 9 15:42:01 ghanima kernel: usb-storage: Transport: Microtek X6
> Apr 9 15:42:01 ghanima kernel: usb-storage: Protocol: Transparent SCSI
> Apr 9 15:42:01 ghanima kernel: usb-storage: *** thread sleeping.
> Apr 9 15:42:01 ghanima kernel: scsi2 : usbscsi0
> Apr 9 15:42:01 ghanima kernel: scsi : 3 hosts.
> Apr 9 15:42:01 ghanima kernel: usb-storage: us_queuecommand() called
> Apr 9 15:42:01 ghanima kernel: usb-storage: *** thread awakened.
> Apr 9 15:42:01 ghanima kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
> Apr 9 15:42:01 ghanima kernel: usb-storage: 00 00 00 00 00 00 00 00 a0 1a
> Apr 9 15:42:01 ghanima kernel: usb-storage: Bulk command S 0x43425355 T 0x18 L 0 F
>0 CL 6
> Apr 9 15:42:01 ghanima kernel: usb-storage: Bulk command transfer result=0
> Apr 9 15:42:01 ghanima kernel: usb-storage: Bulk status S 0xc5059b02 T 0x1 R 134 V
>0x96
> Apr 9 15:42:01 ghanima kernel: usb-storage: Bulk logical error
> Apr 9 15:42:01 ghanima kernel: usb-storage: Command FAILED: Issuing
>auto-REQUEST_SENSE
> Apr 9 15:42:01 ghanima kernel: usb-storage: Bulk command S 0x43425355 T 0x18 L 18 F
>128 CL 6
> Apr 9 15:42:01 ghanima kernel: usb-storage: Bulk command transfer result=0
> Apr 9 15:42:01 ghanima kernel: usb-storage: Bulk xfer 0xc50590f4(18)
> Apr 9 15:42:01 ghanima kernel: usb-storage: bulk_msg returned 0 xferred 1/18
> Apr 9 15:42:01 ghanima kernel: usb-storage: Bulk data transfer result 0x1
> Apr 9 15:42:06 ghanima kernel: usb_control/bulk_msg: timeout
> Apr 9 15:42:06 ghanima kernel: usb-storage: Bulk status result = -110
> Apr 9 15:42:06 ghanima kernel: usb-storage: -- Result from auto-sense is 2
> Apr 9 15:42:06 ghanima kernel: usb-storage: -- sense key: 0x0, ASC: 0x0, ASCQ: 0x0
> Apr 9 15:42:06 ghanima kernel: usb-storage: scsi cmd done, result=0x1
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread sleeping.
> Apr 9 15:42:06 ghanima kernel: usb-storage: us_queuecommand() called
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread awakened.
> Apr 9 15:42:06 ghanima kernel: usb-storage: Bad device number (1/0) or dev
>0xc13aa200
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread sleeping.
> Apr 9 15:42:06 ghanima kernel: usb-storage: us_queuecommand() called
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread awakened.
> Apr 9 15:42:06 ghanima kernel: usb-storage: Bad device number (2/0) or dev
>0xc13aa200
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread sleeping.
> Apr 9 15:42:06 ghanima kernel: usb-storage: us_queuecommand() called
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread awakened.
> Apr 9 15:42:06 ghanima kernel: usb-storage: Bad device number (3/0) or dev
>0xc13aa200
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread sleeping.
> Apr 9 15:42:06 ghanima kernel: usb-storage: us_queuecommand() called
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread awakened.
> Apr 9 15:42:06 ghanima kernel: usb-storage: Bad device number (4/0) or dev
>0xc13aa200
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread sleeping.
> Apr 9 15:42:06 ghanima kernel: usb-storage: us_queuecommand() called
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread awakened.
> Apr 9 15:42:06 ghanima kernel: usb-storage: Bad device number (5/0) or dev
>0xc13aa200
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread sleeping.
> Apr 9 15:42:06 ghanima kernel: usb-storage: us_queuecommand() called
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread awakened.
> Apr 9 15:42:06 ghanima kernel: usb-storage: Bad device number (6/0) or dev
>0xc13aa200
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread sleeping.
> Apr 9 15:42:06 ghanima kernel: usb-storage: us_queuecommand() called
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread awakened.
> Apr 9 15:42:06 ghanima kernel: usb-storage: Bad device number (7/0) or dev
>0xc13aa200
> Apr 9 15:42:06 ghanima kernel: usb-storage: *** thread sleeping.
> Apr 9 15:42:06 ghanima kernel: WARNING: USB Mass Storage data integrity not assured
> Apr 9 15:42:06 ghanima kernel: USB Mass Storage device found at 2
> Apr 9 15:42:06 ghanima kernel: usb.c: usb-storage driver claimed interface c42d46e0
> Apr 9 15:42:06 ghanima kernel: USB Mass Storage support registered.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Matthew Dharm Home: [EMAIL PROTECTED]
Engineer, Qualcomm, Inc. Work: [EMAIL PROTECTED]
I want my GPFs!!!
-- Stef
User Friendly, 11/9/1998
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]