Browse Source

Move DWC2 driver out of staging

The DWC2 driver should now be in good enough shape to move out of
staging. I have stress tested it overnight on RPI running mass
storage and Ethernet transfers in parallel, and for several days
on our proprietary PCI-based platform.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Paul Zimmerman 11 years ago
parent
commit
197ba5f406

+ 1 - 1
MAINTAINERS

@@ -2635,7 +2635,7 @@ DESIGNWARE USB2 DRD IP DRIVER
 M:	Paul Zimmerman <paulz@synopsys.com>
 L:	linux-usb@vger.kernel.org
 S:	Maintained
-F:	drivers/staging/dwc2/
+F:	drivers/usb/dwc2/
 
 DESIGNWARE USB3 DRD IP DRIVER
 M:	Felipe Balbi <balbi@ti.com>

+ 0 - 2
drivers/staging/Kconfig

@@ -140,8 +140,6 @@ source "drivers/staging/netlogic/Kconfig"
 
 source "drivers/staging/mt29f_spinand/Kconfig"
 
-source "drivers/staging/dwc2/Kconfig"
-
 source "drivers/staging/lustre/Kconfig"
 
 source "drivers/staging/xillybus/Kconfig"

+ 0 - 1
drivers/staging/Makefile

@@ -61,7 +61,6 @@ obj-$(CONFIG_DGRP)		+= dgrp/
 obj-$(CONFIG_SB105X)		+= sb105x/
 obj-$(CONFIG_FIREWIRE_SERIAL)	+= fwserial/
 obj-$(CONFIG_GOLDFISH)		+= goldfish/
-obj-$(CONFIG_USB_DWC2)		+= dwc2/
 obj-$(CONFIG_LUSTRE_FS)		+= lustre/
 obj-$(CONFIG_XILLYBUS)		+= xillybus/
 obj-$(CONFIG_DGNC)			+= dgnc/

+ 0 - 33
drivers/staging/dwc2/TODO

@@ -1,33 +0,0 @@
-TODO:
-	- Dan Carpenter would like to see some cleanups to the microframe
-	  scheduler code:
-	  http://www.mail-archive.com/linux-usb@vger.kernel.org/msg26650.html
-
-	- Should merge the NAK holdoff patch from Raspberry Pi
-	  (http://marc.info/?l=linux-usb&m=137625067103833). But as it stands
-	  that patch is incomplete, it needs more investigation to see if it
-	  can be made to work for non-Raspberry Pi platforms that lack the
-	  special FIQ interrupt that the Pi has. Without this patch, the driver
-	  has a high interrupt rate (8K/sec).
-
-	- The Raspberry Pi platform needs to have support for its FIQ interrupt
-	  added, to get the same level of functionality as the downstream
-	  driver. The raspberrypi.org developers have indicated they are
-	  willing to help with that.
-
-	- Some of the default driver parameters (see 'struct dwc2_core_params'
-	  in core.h) won't work for many platforms. So DT attributes will need
-	  to be added for some of these. But that can be done as-needed as new
-	  platforms are added.
-
-	- Eventually the driver should be merged with the s3c-hsotg peripheral
-	  mode driver, so that both modes of operation can be supported with a
-	  single driver. But I think that can wait till after the driver has
-	  been moved to mainline.
-
-	- After that, OTG support can be added. I'm not sure how much demand
-	  there is for that, though, so I have that as a low priority.
-
-Please send any patches for this driver to Paul Zimmerman <paulz@synopsys.com>
-and Greg Kroah-Hartman <gregkh@linuxfoundation.org>. And please CC linux-usb
-<linux-usb@vger.kernel.org> too.

+ 2 - 0
drivers/usb/Kconfig

@@ -108,6 +108,8 @@ endif
 
 source "drivers/usb/dwc3/Kconfig"
 
+source "drivers/usb/dwc2/Kconfig"
+
 source "drivers/usb/chipidea/Kconfig"
 
 comment "USB port drivers"

+ 1 - 0
drivers/usb/Makefile

@@ -7,6 +7,7 @@
 obj-$(CONFIG_USB)		+= core/
 
 obj-$(CONFIG_USB_DWC3)		+= dwc3/
+obj-$(CONFIG_USB_DWC2)		+= dwc2/
 
 obj-$(CONFIG_USB_MON)		+= mon/
 

+ 0 - 0
drivers/staging/dwc2/Kconfig → drivers/usb/dwc2/Kconfig


+ 0 - 0
drivers/staging/dwc2/Makefile → drivers/usb/dwc2/Makefile


+ 0 - 0
drivers/staging/dwc2/core.c → drivers/usb/dwc2/core.c


+ 0 - 0
drivers/staging/dwc2/core.h → drivers/usb/dwc2/core.h


+ 0 - 0
drivers/staging/dwc2/core_intr.c → drivers/usb/dwc2/core_intr.c


+ 0 - 0
drivers/staging/dwc2/hcd.c → drivers/usb/dwc2/hcd.c


+ 0 - 0
drivers/staging/dwc2/hcd.h → drivers/usb/dwc2/hcd.h


+ 0 - 0
drivers/staging/dwc2/hcd_ddma.c → drivers/usb/dwc2/hcd_ddma.c


+ 0 - 0
drivers/staging/dwc2/hcd_intr.c → drivers/usb/dwc2/hcd_intr.c


+ 0 - 0
drivers/staging/dwc2/hcd_queue.c → drivers/usb/dwc2/hcd_queue.c


+ 0 - 0
drivers/staging/dwc2/hw.h → drivers/usb/dwc2/hw.h


+ 0 - 0
drivers/staging/dwc2/pci.c → drivers/usb/dwc2/pci.c


+ 0 - 0
drivers/staging/dwc2/platform.c → drivers/usb/dwc2/platform.c