[PATCHv2 00/13] usb: dwc2: Add support for dual role

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

 



From: Dinh Nguyen <dinguyen@xxxxxxxxxx>

Hello,

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

- less code change:
	v1: 9 files changed, 877 insertions(+), 904 deletions(-)
	v2: 9 files changed, 368 insertions(+), 357 deletions(-)

- patch 4/13 : simplified the patch by only changing the 'hsotg' type and
  not change it's name.

- Add patch 3/12 : Moves the ""samsung,s3c6400-hsotg" compatible binding
  into platform.c.

- Kept the interrupt handlers separate. dwc2_handle_common_intr() will
  check to see if the driver is in peripheral mode and make the call
  into the dwc2 gadget interrupt handler.

This patch series is based on top of Robert Baldyga's 
[PATCH v3 00/12] usb: dwc2/gadget: fix series. I thought it might be
appropriate since that series already has paulz's Acked-by:.

This patch series is based on v3.16-rc7. I have pushed this a git repo to make
it more convenient for people to test/review.

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

Also, I have tested on 2 platforms. SOCFPGA(device, host and dual-role),
RPi-B(Host mode only in Host and dual-role mode).

Thanks,

Dinh Nguyen (13):
  usb: dwc2: Update Kconfig to support dual-role
  usb: dwc2: Moves s3c_hsotg gadget data structure into dwc2_hsotg
  usb: dwc2: move "samsung,s3c6400-hsotg" into common platform
  usb: dwc2: update gadget portion to use common dwc2_hsotg structure
  usb: dwc2: Add the appropriate init calls in 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: initialize the spin_lock for both host and gadget
  usb: dwc2: Add suspend/resume for gadget
  usb: dwc2: check that the host work queue is valid
  usb: dwc2: pci: Update pci portion of the dwc2 driver

 drivers/usb/dwc2/Kconfig     |   59 ++---
 drivers/usb/dwc2/Makefile    |   21 +-
 drivers/usb/dwc2/core.h      |   53 ++++-
 drivers/usb/dwc2/core_intr.c |   13 +-
 drivers/usb/dwc2/gadget.c    |  513 +++++++++++++++++-------------------------
 drivers/usb/dwc2/hcd.c       |    2 +-
 drivers/usb/dwc2/hcd.h       |   10 -
 drivers/usb/dwc2/pci.c       |    1 +
 drivers/usb/dwc2/platform.c  |   53 ++++-
 9 files changed, 368 insertions(+), 357 deletions(-)

-- 
1.7.9.5

--
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