[PATCHv5 0/7] usb: dwc2: Add support for dual-role

From: dinguyen
Date: Mon Oct 20 2014 - 14:56:34 EST


From: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx>

Hello,

This is version 5 of the patch series that combines the dwc2 gadget and host
driver into a single dual role driver. Here are the main differences from V4:

- Squashed 5 patches from V4 into patch 2. Patchset is now only 7 patches.
- Makefile moved to be the last patch in the series.
- When building for kernel modules, dwc2.ko will get built for all modes(host,
gadget, and dual-role). dwc2_platform.ko and dwc2_pci.ko will get built
for platform SOC and PCI.

For v5, the series is rebased on top of v3.18-rc1.

As usual, tested on SOCFPGA(host, gadget, and dual-role) and on Rpi-B
(host mode only).

I have pushed this series to a git repo to make it more convenient for people
to test/review.

git://git.rocketboards.org/linux-socfpga-next.git dwc2_dual_role_v5

Thanks,

Dinh Nguyen (7):
usb: dwc2: Update the gadget driver to use common dwc2_hsotg structure
usb: dwc2: Move gadget probe function into platform code
usb: dwc2: Initialize the USB core for peripheral mode
usb: dwc2: Update common interrupt handler to call gadget interrupt
handler
usb: dwc2: Add call_gadget functions for perpheral mode interrupts
usb: dwc2: gadget: Do not fail probe if there isn't a clock node
usb: dwc2: Update Kconfig to support dual-role

drivers/usb/dwc2/Kconfig | 61 ++++++----
drivers/usb/dwc2/Makefile | 32 ++---
drivers/usb/dwc2/core.c | 10 --
drivers/usb/dwc2/core.h | 192 +++++++++++++++++------------
drivers/usb/dwc2/core_intr.c | 16 ++-
drivers/usb/dwc2/gadget.c | 283 +++++++++++++------------------------------
drivers/usb/dwc2/hcd.c | 3 +-
drivers/usb/dwc2/hcd.h | 10 --
drivers/usb/dwc2/pci.c | 7 ++
drivers/usb/dwc2/platform.c | 52 ++++++++
10 files changed, 331 insertions(+), 335 deletions(-)

--
2.0.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/