linux-sg2042/drivers/usb/dwc2
Dinh Nguyen 117777b2c3 usb: dwc2: Move gadget probe function into platform code
This patch will aggregate the probing of gadget/hcd driver into platform.c.
The gadget probe funtion is converted into gadget_init that is now only
responsible for gadget only initialization. All the gadget resources are now
handled by platform.c

Since the host workqueue will not get initialized if the driver is configured
for peripheral mode only. Thus we need to check for wq_otg before calling
queue_work().

Also, we move spin_lock_init to common location for both host and gadget that
is either in platform.c or pci.c.

We also move suspend/resume code to common platform code.

Lastly, move the "samsung,s3c6400-hsotg" binding into dwc2_of_match_table.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-11-14 14:59:32 -06:00
..
Kconfig usb: dwc2: allow dwc2 to get built when USB_GADGET=m 2014-11-03 10:05:07 -06:00
Makefile Revert "usb: dwc2: Update Kconfig to support dual-role" 2014-09-11 13:45:13 -07:00
core.c usb: dwc2: clip max_transfer_size to 65535 2014-09-19 16:17:58 -07:00
core.h usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00
core_intr.c usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00
gadget.c usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00
hcd.c usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00
hcd.h usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00
hcd_ddma.c Move DWC2 driver out of staging 2014-01-13 14:44:01 -08:00
hcd_intr.c usb: dwc2: handle DMA buffer unmapping sanely 2014-09-19 16:17:58 -07:00
hcd_queue.c usb: dwc2: handle DMA buffer unmapping sanely 2014-09-19 16:17:58 -07:00
hw.h usb: dwc2: add defines to support s3c-hsotg driver 2014-04-24 13:12:43 -07:00
pci.c usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00
platform.c usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00