On Thu, 8 Jun 2006, Elladan wrote:

> > > The problem with this is that I have other usb-storage devices.  I'd
> > > need a way to just re-probe the one that failed.
> > 
> > There are a couple of ways to do it.  For example, you can selectively
> > unbind and rebind usb-storage to a particular USB interface by writing the
> > interface's name to the "unbind" and "bind" files in
> > /sys/bus/usb/drivers/usb-storage.
> 
> Ah, thank you!  Unfortunately, I don't have these bind/unbind knobs.  I
> guess I have to upgrade after all!

There are other approaches too.  For instance, I vaguely recall something 
mentioned in the "SCSI Programming HOWTO" document.  (I don't have it with 
me here, and it might be long out-of-date.)

> > It's not a timeout; it's just a delay.  Yes, the delay is there because 
> > some devices take a while to start up.  You can change the length of that 
> > delay by setting a module parameter for usb-storage.  For example, in 
> > /etc/modprobe.conf you might say:
> > 
> >     options usb-storage delay_use=10
> > 
> > to make that delay be 10 seconds long instead of the default 5 seconds.
> 
> Ah, thank you.  Unfortunately to get it to work, I think I'd have to set
> it to be around 20 seconds.  Might it be better if we could probe this
> over and over?  Then well-behaved devices could show up immediately.

I doubt it would be better.  More likely this would just cause lots of 
unnecessary extra activity and overhead in the much-more-common case of 
devices that don't work at all.

> > > It returned -1 sectors...  A bit odd, but clearly a magic number and not
> > > garbage.
> > 
> > On the contrary -- clearly garbage and not a magic number.  A value of -1 
> > means the device returned data in which all the bits are turned on, 
> > typical of what happens when a semiconductor device fails.  It does not 
> > have any special magic meaning.
> 
> I'll bet it does.  Maybe not a WELL-DEFINED special meaning, of course.
> :-)

The only well-defined special meaning I know of is "I'm broken".

Alan Stern



_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to