[PATCH 00/17] Add UDC support to the isp1760 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

This patch set adds UDC support to the isp1760 driver, to be used with the
ISP1761 dual-role USB controller.

The first 16 patches rework the isp1760 driver to prepare it for UDC support.
In particular it removes the direct HCD dependencies from the glue code (01/17
to 04/17), creates core initialization code shared by the HCD and UDC (12/17),
move common initialization code to the core (13/17 to 15/17), implement the
shutdown driver operations (16/17) and, finally, adds UDC support (17/17).

The ISP1761 as 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.

Laurent Pinchart (17):
  usb: isp1760: Retrieve pdev memory resource from hcd at remove time
  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: 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: Move GPIO request to common code
  usb: isp1760: Set IRQF_SHARED flag in core code
  usb: isp1760: Initialize the bus interface in core code
  usb: isp1760: Implement driver shutdown operations
  usb: isp1760: Add device controller support

 drivers/usb/gadget/udc/Kconfig  |    7 +
 drivers/usb/host/Makefile       |    3 +-
 drivers/usb/host/isp1760-core.c |  222 ++++++
 drivers/usb/host/isp1760-core.h |   72 ++
 drivers/usb/host/isp1760-hcd.c  |  282 ++++----
 drivers/usb/host/isp1760-hcd.h  |  229 ++-----
 drivers/usb/host/isp1760-if.c   |  140 ++--
 drivers/usb/host/isp1760-regs.h |  230 +++++++
 drivers/usb/host/isp1760-udc.c  | 1418 +++++++++++++++++++++++++++++++++++++++
 drivers/usb/host/isp1760-udc.h  |  101 +++
 10 files changed, 2262 insertions(+), 442 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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux