This patch set refactor the Mavell udc driver and fix some bugs. The purpose of refactoring is going to support all the Mavell SOCs using the same USB IP. Thanks Balbi for your advice. Changelog: V3: 1. Move mv_usb.h to include/linux/platform_data. 2. Recombine some patches according to purpose. 3. Fix some comment style errors. 4. Rephrase logs for some patches. Neil Zhang (16): USB: mv_udc: refine the driver structure USB: mv_udc: add section information USB: mv_udc: fix kernel panic on some platforms USB: mv_udc: fix a clerical error USB: mv_udc: ep0 needn't set toggle flag USB: mv_udc: init next dtd ptr for dqh when init ep0 USB: mv_udc: fix bug when handle setup package. USB: mv_udc: add missing spinlock in ep enable/disable USB: mv_udc: set unused endpoint with right type USB: mv_udc: rewrite fifo flush USB: mv_udc: correct ep0 state USB: mv_udc: add shutdown function for it USB: mv_udc: fix dtd dma confusion USB: mv_udc: use DMA API for status_req's dma address USB: mv_udc: add test mode support USB: mv_udc: add clock gating support drivers/usb/gadget/Makefile | 2 +- drivers/usb/gadget/mv_udc.h | 26 ++- drivers/usb/gadget/mv_udc_core.c | 554 +++++++++++++++++++++++++++------- drivers/usb/gadget/mv_udc_phy.c | 214 ------------- include/linux/platform_data/mv_usb.h | 50 +++ 5 files changed, 516 insertions(+), 330 deletions(-) delete mode 100644 drivers/usb/gadget/mv_udc_phy.c create mode 100644 include/linux/platform_data/mv_usb.h -- 1.7.4.1 -- 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