On Thu, Aug 29, 2013 at 08:22:57AM -0400, Kevin O'Connor wrote:
On Wed, Aug 21, 2013 at 03:20:22PM +0200, Gerd Hoffmann wrote:
Preparation for better xhci support: allows to notify host controllers instead of going through a free+alloc cycle.
Thinking about this further, can the xhci_alloc_pipe() code just check if the requested pipe was recently free'd (by scanning the free list) and then reuse it (by calling xhci_alloc_pipe itself)? If so, it wouldn't require changes to the usb.c code and it wouldn't introduce any leak scenarios.
-Kevin