This patch set refactor the Mavell udc driver and fix some bugs. The purpose of refactoring is going to support all the Mavell SOCs with the same USB IP. Add some new features base on the original code: 1. add shutdown call back. 2. add test mode support. 3. add clock gating support. Changelog: V2: 1. Remove unused Change-Id in all patches. 2. Move some structure out of arch/arm because of not arm specific in patch 01. 3. Do not cast the return code of ioremap in patch 01. 4. Split patch 05 and 07 in order to make things simple. 5. Add some more logs for patch. Neil Zhang (17): USB: mv_udc: refine the driver structure. USB: mv_udc: fix kernel panic on some platform USB: mv_udc: fix a clerical error USB: mv_udc: check if device mode in irq 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 spin_lock in mv_ep_enable USB: mv_udc: set unused endpoint type to bulk USB: mv_udc: add spin_lock in mv_ep_disable 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: support clock gating with vbus detection arch/arm/plat-pxa/include/plat/usb.h | 44 +++ drivers/usb/gadget/Makefile | 2 +- drivers/usb/gadget/mv_udc.h | 211 +++---------- drivers/usb/gadget/mv_udc_core.c | 585 +++++++++++++++++++++++++++------- drivers/usb/gadget/mv_udc_phy.c | 214 ------------- include/linux/usb/mv_usb.h | 193 +++++++++++ 6 files changed, 747 insertions(+), 502 deletions(-) create mode 100644 arch/arm/plat-pxa/include/plat/usb.h delete mode 100644 drivers/usb/gadget/mv_udc_phy.c create mode 100644 include/linux/usb/mv_usb.h -- 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