Re: avoid resetting mode-switched devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Montag, 14. Dezember 2009 23:12:06 schrieb Alan Stern:
> On Mon, 14 Dec 2009, Oliver Neukum wrote:
> 
> > > Also note that other drivers will reset a device to recover from errors 
> > > (usbhid for example).
> > 
> > I haven't heard of a switched device with an HID interface.
> 
> Eventually one will come along.

Yes, I have some code to fall back to usb_reset_configuration().
Should we do so also for storage?

> > > probably because Windows doesn't use it.  So what does Windows do when 
> > > such a device gets an error in its mass-storage interface?
> > 
> > I don't know. I suspect Windows switches modes in kernel space.
> 
> Well, if we don't have any choice then it has to be done.  Obviously a
> sysfs attribute is the best way.  However I can't help thinking that
> this is only a symptom of something deeper, and it ought to be
> generalized.  But it's not clear how...

The obvious alternative is to put mode switching into the kernel.
If you don't want to do that, there'll be other drawbacks, we are seeing
here.

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux