Hi all, here's v2 of the generic dma mapping API for the gadget framework. I have applied a few comments from Alan and Sebastian, but I'm still not convinced we need that req->mapped private flag. If it's a real problem that many different controllers will have, then we should have a generic "mapped" flag on the public usb_request structure. Please take a look at the revised version and apologies if I have missed any comment, but it has been a hectic week already ;-) Felipe Balbi (9): usb: gadget: add generic map/unmap request utilities usb: dwc3: gadget: use generic map/unmap routines usb: gadget: langwell: use generic map/unmap functions usb: renesas: gadget: use generic map/unmap routines usb: gadget: amd5536: use generic map/unmap routines usb: gadget: r8a66597: use generic map/unmap routines usb: gadget: net2272: use generic map/umap routines usb: gadget: net2280: use generic map/unmap routines usb: gadget: goku: use generic map/unmap routines drivers/usb/dwc3/gadget.c | 80 +++++--------------------------- drivers/usb/gadget/amd5536udc.c | 32 ++----------- drivers/usb/gadget/goku_udc.c | 16 ++---- drivers/usb/gadget/langwell_udc.c | 45 +++--------------- drivers/usb/gadget/net2272.c | 18 +++---- drivers/usb/gadget/net2280.c | 18 +++---- drivers/usb/gadget/r8a66597-udc.c | 10 +--- drivers/usb/gadget/udc-core.c | 52 +++++++++++++++++++++ drivers/usb/renesas_usbhs/mod_gadget.c | 73 +++++++---------------------- include/linux/usb/gadget.h | 10 ++++ 10 files changed, 127 insertions(+), 227 deletions(-) -- 1.7.8.rc4 -- 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