Am Donnerstag, 20. Dezember 2007 16:32:50 schrieb Alan Stern:
> On Thu, 20 Dec 2007, Oliver Neukum wrote:
> 
> > Hi,
> > 
> > the mos7720 driver sends two commands to the device whenever it is
> > closed. It does so unconditionally even if the device has been disconnected.
> > It seems to me that this is wrong. Making sure that this does not happen
> > for disconnected devices takes a bit of infrastructure in the generic part.
> > However I am not sure whether this interfeeres with hanging up the tty.
> > What do you think?
> 
> There's nothing wrong with trying to send those commands if the device 
> really is disconnected.  The attempts will fail quickly.
> 
> The problem arises when the device is still connected but the driver 
> has been unbound.  That is illegal; a driver is never supposed to 
> access a device once its unbind method has returned.

Exactly, but as a driver cannot (and should not) notice the difference,
we must consider any IO after disconnect wrong.

> Do other serial drivers suffer from a similar problem?

I probably would have noticed, but I didn't specifically look for it.

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

Reply via email to