Re: [PATCH 1/1 v2] xHCI 1.0: Endpoint Not Enabled Error

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

 



On Mon, 20 Jun 2011, Sarah Sharp wrote:

> Alan,
> 
> All of this is a lot of work for the xHCI driver, and it seems like
> other host drivers also could suffer from active URBs being outstanding
> at inopportune times due to buggy drivers.  Would it be possible for the
> USB core to cancel any outstanding URBs before resetting a device,
> changing a configuration or alternate interface setting, or deallocating
> a device?  It seems like that work really needs to be done in a central
> location.

I don't see any reason why this couldn't be done.  In fact, we already 
do cancel URBs before changing configs or deallocating a device.

(In fact looking at the current code for usb_reset_configuration(), it 
appears that the failure paths forget to call usb_enable_interface() to 
re-enable the old endpoints...)

I'll send a patch for you to try out...

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