On Fri, 14 Feb 2014, Bjørn Mork wrote:

> Alan Stern <[email protected]> writes:
> > On Thu, 13 Feb 2014, Bjørn Mork wrote:
> >> Alan Stern <[email protected]> writes:
> >> 
> >> >>  Schould we request to fix that in
> >> >> user space, or can we remove this warning like on below patch (call
> >> >> CLEAR_HALT ioctl, does not seems to do any harm except printing a
> >> >> warning) ?
> >> >
> >> > Doing an endpoint reset while URBs are queued is a bug, because the
> >> > results are not defined.  It should be fixed in the userspace program.
> >> 
> >> Maybe the usbfs driver should catch bugs like this and log a message
> >> pointing to the buggy userspace "driver" instead of blindly forwarding
> >> the clear halt?  That would make it more obvious that this is not a
> >> kernel bug.
> >
> > You mean something like this?
> 
> Yes, that looks nice.  And maybe even reject the command to avoid the
> warning from the hcd?

No, I don't want to reject the command.  That could break existing 
programs.

Alan Stern

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