Re: [PATCH] Add usb_setup_{control, bulk, int}_urb helpers

Marcel Holtmann <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
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/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.