On Tue, 30 Jun 2015, Oliver Neukum wrote:

> Hi,
> 
> I am looking at a device that spontaneously switches
> its mode. I guess that you need to actively do something
> that some Windows versions do to keep the device in its
> initial mode.

When does the spontaneous mode switch occur?

> The device contains an SD card reader. That leaves me in
> a predicament. The medium if it is mounted before the
> device switches will be dirty.
> 
> Normally we say that unmounting before you switch
> is a responsibility of user space. But this device
> switches by itself.
> In that particular case I would go as far as make
> the storage driver refuse the storage interface
> of the initial mode.
> 
> What do you think?

I agree.  If a storage device is going to disconnect itself at random
times, we shouldn't try to access it.  Users can override this behavior
with usb-storage's "i" quirk flag if they need to.

Alan Stern

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

Reply via email to