On Tue, 24 Feb 2004, patrick hurley wrote:

> 
> > Your descriptors showed this is a GeneSys device.  For reasons
> > unclear to any of us, that's what those devices do when they talk
> > to Linux.  All the evidence is that those adapters are at fault, and
> > they just stop talking to Linux ... sometimes even locking up hard
> > enough that a USB reset doesn't recover them (power cycling works).
> > 
> > My advice for now is to get a different drive enclosure, one that
> > doesn't use GeneSys chips.  Unless you can do some low-level USB
> > debugging, and create a patch that'll prevent those problems.
> 
> 
> Ah, excellent.  Thank you for the info.

The situation isn't quite as dire as it may appear.  Many people with
Genesys Logic adapters are successfully using them by reducing the
max_sectors value in linux/drivers/usb/storage/scsiglue.c (in Linux 2.6).  
Near the end of the source file, change the line that says

        .max_sectors =          240,

to

        .max_sectors =          128,

You can even get the same effect without patching the source code at all!  
There's an attribute file in the sysfs directory for your drive called
max_sectors.  If you read the file it contains a single line saying 240.  
Simply

        echo 128 >/path/to/sysfs/directory/max_sectors

to write the lower value (do this before reading or writing any files on
the drive).

Alan Stern



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to