Hi Greg, > here is a patch that adds three URB setup helpers that will allocate the > transfer buffer using kmalloc() and set the new URB_FREE_BUFFER flage to > make it free together with the URB. Please apply.
while I was creating this patch, I was thinking about its usefulness. It will make the drivers more simpler, but still every driver that is gonna use it has to allocate the URB itself. So why not go one step ahead and create usb_alloc_{control,bulk,int}_urb helpers that will allocate the URB, its transfer buffer set the appropriate flags. Comments? Regards Marcel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel