Re: USB harddrive not working (2.4, 2.5)

From: Andrey Panin (pazke@orbita1.ru)
Date: Mon Mar 24 2003 - 05:04:06 EST


On 080, 03 21, 2003 at 01:22:30 -0500, Jan Harkes wrote:
> On Wed, Mar 19, 2003 at 01:21:17PM +0300, Andrey Panin wrote:
> > Hi,
> >
> > ISD200 based hard drive bay doesn't work with 2.4 & 2.5,
> > can someone assist me with it?
>
> This looks like the same problem I was seeing with my Archos. The
> initial probes for ATA devices fail and the driver falls back to
> 'transparent scsi mode', where it passes everything along unchanged.
> Probably works fine when an ATAPI device is attached, but not with my
> drive.
>
> > usb-storage: isd200_action(ENUM,0xa0)
> > usb-storage: Bulk command S 0x43425355 T 0x0 Trg 0 LUN 1 L 0 F 0 CL 0
> > usb-storage: usb_stor_bulk_transfer_buf(): xfer 31 bytes
> > usb-storage: Status code 0; transferred 31/31
> > usb-storage: -- transfer complete
> > usb-storage: Bulk command transfer result=0
> > usb-storage: Attempting to get CSW...
> > usb-storage: usb_stor_bulk_transfer_buf(): xfer 13 bytes
> > usb-storage: Status code -32; transferred 0/13
>
> The isd200 driver is not correctly initializing the srb.cmd_len field,
> which is the main reason why things fail. I also noticed that the
> usb_stor_bulk functions are interpreting the ATA commands as if they
> were scsi, so the packet was sent to the wrong lun, but that might not
> really matter much.
>
> Here is a patch agains 2.5.64 that fixes both of these problems for me.
> It will probably apply to 2.5.65 as well.

I don't have this drive at this time, but i'll test your patch and report
results ASAP.

-- 
Andrey Panin		| Embedded systems software developer
pazke@orbita1.ru	| PGP key: wwwkeys.pgp.net
-
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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:15 EST