[PATCH 0/3] USB: OHCI/EHCI: generic platform driver

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

 



This EHCI/OHCI platform driver should replace the simple EHCI and OHCI 
platform drivers. It was developed to be used for the USB core of the 
Broadcom SoCs supported by ssb and bcma, but it should also work for 
other devices.

Drivers like ehci-ath79.c, ehci-xls.c and ehci-ixp4xx.c should be 
relative easy be ported to this EHCI driver.
And drivers like ohci-ath79.c, ohci-ppc-soc.c, ohci-sh.c and ohci-xls.c 
should be easy be ported to the this OHCI driver.

I also thought about adding optional callbacks in the platform data 
struct called in some places like reset, to do device/platform specific 
operations, but later I thought it does not look nice.

I am unable to test the suspend and resume part, as my SoC does not 
support this, but most of the platform driver do not support 
suspend/resume too. The code here should work, but was never runtime 
tested.

After this patch is in the usb tree I will send the bcma and ssb driver
using the generic driver from this patch again with some modifications.

This is a new version of the patches send in 
http://thread.gmane.org/gmane.linux.ports.mips.general/33401/focus=84218

Hauke Mehrtens (3):
  USB: OHCI/EHCI: add struct for generic platform driver
  USB: OHCI: Add a generic platform device driver
  USB: EHCI: Add a generic platform device driver

 drivers/usb/host/Kconfig         |   20 ++++
 drivers/usb/host/ehci-hcd.c      |    5 +
 drivers/usb/host/ehci-platform.c |  199 ++++++++++++++++++++++++++++++++++++++
 drivers/usb/host/ohci-hcd.c      |    5 +
 drivers/usb/host/ohci-platform.c |  183 +++++++++++++++++++++++++++++++++++
 include/linux/usb/hci_driver.h   |   32 ++++++
 6 files changed, 444 insertions(+), 0 deletions(-)
 create mode 100644 drivers/usb/host/ehci-platform.c
 create mode 100644 drivers/usb/host/ohci-platform.c
 create mode 100644 include/linux/usb/hci_driver.h

-- 
1.7.5.4

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