Hi all, another version of the UDC Class. I'm hoping it's at least easier to review. Please, if you have any of the controllers already converted, give it a shot and report any problems. I've splitted the last patch into a per-controller patch to make it easier to review/integrate. For doing that I needed to add another Kconfig option which can vanish as soon as all controllers are converted. Comments are very welcome, specially wrt locking as I'm not sure I covered all cases (probably not :-p) These patches are also available at [1] for easy testing [1] git://gitorious.org/usb/usb.git udc Felipe Balbi (8): usb: gadget: introduce start() and stop() usb: gadget: introduce UDC Class usb: musb: gadget: use new interfaces usb: gadget: amd5536: use new interfaces usb: gadget: at91: use new interfaces usb: gadget: goku: use new interfaces usb: gadget: dummy: use new interfaces usb: gadget: move gadget operations to udc-core.c drivers/usb/gadget/Kconfig | 6 + drivers/usb/gadget/Makefile | 1 + drivers/usb/gadget/amd5536udc.c | 451 ++++++++++++-------------- drivers/usb/gadget/amd5536udc.h | 4 +- drivers/usb/gadget/at91_udc.c | 131 +++----- drivers/usb/gadget/at91_udc.h | 4 +- drivers/usb/gadget/dummy_hcd.c | 99 ++---- drivers/usb/gadget/goku_udc.c | 369 +++++++++------------ drivers/usb/gadget/goku_udc.h | 4 +- drivers/usb/gadget/udc-core.c | 633 ++++++++++++++++++++++++++++++++++++ drivers/usb/musb/musb_core.c | 4 +- drivers/usb/musb/musb_core.h | 4 +- drivers/usb/musb/musb_gadget.c | 214 ++++--------- drivers/usb/musb/musb_gadget_ep0.c | 4 +- drivers/usb/musb/tusb6010.c | 2 +- include/linux/usb/gadget.h | 173 +--------- include/linux/usb/udc.h | 55 +++ 17 files changed, 1223 insertions(+), 935 deletions(-) create mode 100644 drivers/usb/gadget/udc-core.c create mode 100644 include/linux/usb/udc.h -- 1.7.3.rc0.35.g8ac8c -- 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