Re: avoid resetting mode-switched devices

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

 



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.

> > Do we really have to do this?  How often will it be a problem?
> 
> We do have a problem here.
> 
> > usb-storage's class-specific reset mechanism almost never works, 
> 
> But
> a) a generic reset will never work
> b) the other interfaces may still work
> 
> > 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...

Alan Stern

--
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