Hello, This patch set adds UDC support to the isp1760 driver, to be used with the ISP1761 dual-role USB controller. The first 21 patches rework the isp1760 driver to prepare it for UDC support. In particular it removes the direct HCD dependencies from the glue code (02/22 to 08/22), creates core initialization code shared by the HCD and UDC (18/22), move common initialization code to the core (19/22 to 21/22) and, finally, adds UDC support (22/22). The ISP1761 has three USB ports, with port 1 configurable in host or peripheral mode with OTG support, and ports 2 and 3 supporting host mode only. OTG support is not implemented yet, port 1 can thus be configured in host or peripheral mode only. The UDC driver has been successfully tested with the g_zero and g_mass_storage gadgets. The patches are based on top of v3.18-rc7. Global changes compared to v1: - Replace GPIO request move by patch 01/22 - Split PORT1 configuration to separate patch - Drop the shutdown implementation patch - Add patches 02/22, 04/22, 05/22, 13/22, 14/22 See individual patches for patch-specific changes. Laurent Pinchart (22): usb: isp1760: Use the gpio descriptor API usb: isp1760: Remove isp1760 glue structure usb: isp1760: Retrieve pdev memory resource from hcd at remove time usb: isp1760: Unmap I/O registers at platform device removal usb: isp1760: Merge platform and OF glue codes usb: isp1760: Move removal cleanup code to isp1760-hcd.c usb: isp1760: Manage device driver data in common code usb: isp1760: Don't expose hcd to glue code from isp1760_register usb: isp1760: Fix indentation in probe error path usb: isp1760: Prefix init_kmem_once and deinit_kmem_cache with isp1760_ usb: isp1760: Remove busname argument to isp1760_register usb: isp1760: Pass resource pointer to isp1760_register usb: isp1760: Use the managed devm_ioremap_resource() API usb: isp1760: Refactor PCI initialization code usb: isp1760: Decouple usb_hdc and isp1760_priv usb: isp1760: Prefix driver data structures with isp1760_ usb: isp1760: Reorganize header files usb: isp1760: Move core code to isp1760-core.c usb: isp1760: Set IRQF_SHARED flag in core code usb: isp1760: Initialize the bus interface in core code usb: isp1760: Move PORT1 configuration to core code usb: isp1760: Add device controller support drivers/usb/gadget/udc/Kconfig | 7 + drivers/usb/host/Makefile | 3 +- drivers/usb/host/isp1760-core.c | 171 +++++ drivers/usb/host/isp1760-core.h | 68 ++ drivers/usb/host/isp1760-hcd.c | 277 ++++---- drivers/usb/host/isp1760-hcd.h | 229 ++---- drivers/usb/host/isp1760-if.c | 426 ++++------- drivers/usb/host/isp1760-regs.h | 230 ++++++ drivers/usb/host/isp1760-udc.c | 1496 +++++++++++++++++++++++++++++++++++++++ drivers/usb/host/isp1760-udc.h | 106 +++ 10 files changed, 2379 insertions(+), 634 deletions(-) create mode 100644 drivers/usb/host/isp1760-core.c create mode 100644 drivers/usb/host/isp1760-core.h create mode 100644 drivers/usb/host/isp1760-regs.h create mode 100644 drivers/usb/host/isp1760-udc.c create mode 100644 drivers/usb/host/isp1760-udc.h -- Regards, Laurent Pinchart -- 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