> > > > usb_urb_alloc(usb_host_endpoint *ep, // hook to HCD > > > > size_t maxbuf, // ... for prealloc of N TDs > > > > unsigned n_iso, > > > > unsigned gfp_flags); > > > > > > > > > > It is pretty straightforward a change.
Maybe. That'd assume that at the spot the URBs get allocated, the driver knows "ep" (may be problematic) and "maxbuf" (likely simple). > > > Auditing locking in all drivers is not. > > > Switching to tasklets would result in revisting locking in drivers. > > > > Why would switching uhci-hcd over to a tasklet require any change in other > > drivers? > > You have to audit all drivers to check them for synchronization between > the callback and other hard irqs. In addition to reap the full benefit from > a switch to tasklets, you'd have to change the drivers to use spin_lock_bh(). Not many USB device driver use tasklets, but all those would need to be audited/modified. - Dave ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel