linux/drivers/usb/gadget/udc
Ruslan Bilovol 855ed04a37 usb: gadget: udc-core: independent registration of gadgets and gadget drivers
Change behavior during registration of gadgets and
gadget drivers in udc-core. Instead of previous
approach when for successful probe of usb gadget driver
at least one usb gadget should be already registered
use another one where gadget drivers and gadgets
can be registered in udc-core independently.

Independent registration of gadgets and gadget drivers
is useful for built-in into kernel gadget and gadget
driver case - because it's possible that gadget is
really probed only on late_init stage (due to deferred
probe) whereas gadget driver's probe is silently failed
on module_init stage due to no any UDC added.

Also it is useful for modules case - now there is no
difference what module to insert first: gadget module
or gadget driver one.

Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
[simplified code as requested by Alan Stern and Felipe Balbi,
 fixed checkpatch issues]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-12-16 10:07:27 -06:00
..
bdc usb: gadget: bdc: fix memory leak 2015-09-30 11:20:21 -05:00
amd5536udc.c usb: gadget: amd5536udc: NULL comparison 2015-10-01 12:40:22 -05:00
amd5536udc.h usb: gadget: amd5536udc: remove unnecessary conditions 2015-10-01 12:40:20 -05:00
at91_udc.c usb: gadget: at91_udc: add ep capabilities support 2015-08-04 12:26:38 -05:00
at91_udc.h usb: gadget: at91_udc: move at91_udc_data in at91_udc.h 2015-09-27 10:54:31 -05:00
atmel_usba_udc.c usb: gadget: atmel_usba_udc: Expose correct device speed 2015-11-17 11:35:49 -06:00
atmel_usba_udc.h usb: gadget: atmel_usba: use endian agnostic IO on ARM 2015-03-19 11:28:16 -05:00
bcm63xx_udc.c usb: gadget: bcm63xx_udc: add ep capabilities support 2015-08-04 12:26:39 -05:00
dummy_hcd.c usb: gadget: dummy_hcd: replace timeval with timespec64 2015-09-27 10:54:31 -05:00
fotg210-udc.c usb: gadget: fotg210-udc: add ep capabilities support 2015-08-04 12:26:41 -05:00
fotg210.h
fsl_mxc_udc.c
fsl_qe_udc.c usb: gadget: fsl_qe_udc: add ep capabilities support 2015-08-04 12:26:42 -05:00
fsl_qe_udc.h
fsl_udc_core.c usb: gadget: fsl_udc_core: add ep capabilities support 2015-08-04 12:26:43 -05:00
fsl_usb2_udc.h
fusb300_udc.c usb: gadget: fusb300_udc: add ep capabilities support 2015-08-04 12:26:44 -05:00
fusb300_udc.h
goku_udc.c usb: gadget: goku_udc: add goku_match_ep() function 2015-08-06 09:34:46 -05:00
goku_udc.h
gr_udc.c usb: gadget: drop null test before destroy functions 2015-09-21 14:42:36 -05:00
gr_udc.h
Kconfig usb: gadget: at91_udc: mention proper dependency 2015-10-01 12:40:23 -05:00
lpc32xx_udc.c usb: gadget: lpc32xxx_udc: clean up and sort include directives out 2015-12-15 09:12:41 -06:00
m66592-udc.c usb: gadget: m66592-udc: add ep capabilities support 2015-08-04 12:26:46 -05:00
m66592-udc.h
Makefile usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC 2014-11-18 08:47:23 -06:00
mv_u3d_core.c usb: gadget: drop null test before destroy functions 2015-09-21 14:42:36 -05:00
mv_u3d.h
mv_udc_core.c usb: gadget: drop null test before destroy functions 2015-09-21 14:42:36 -05:00
mv_udc.h
net2272.c usb: gadget: net2272: add ep capabilities support 2015-08-04 12:26:48 -05:00
net2272.h usb: gadget: net2272: use common is_selfpowered 2015-01-29 10:35:27 -06:00
net2280.c usb: gadget: net2280: restore ep_cfg after defect7374 workaround 2015-10-19 09:25:53 -05:00
net2280.h usb: gadget: net2280: remove fiforegs as it is unused 2015-03-10 15:33:30 -05:00
omap_udc.c usb: gadget: omap_udc: add ep capabilities support 2015-08-04 12:26:50 -05:00
omap_udc.h
pch_udc.c usb: gadget: fix a trivial typo 2015-10-19 09:20:05 -05:00
pxa25x_udc.c usb: gadget: epautoconf: remove pxa quirk from ep_matches() 2015-08-04 12:27:15 -05:00
pxa25x_udc.h
pxa27x_udc.c usb: gadget: pxa27x: fix suspend callback 2015-11-19 14:48:35 -06:00
pxa27x_udc.h usb: gadget: pxa27x_udc: add ep capabilities support 2015-08-04 12:26:52 -05:00
r8a66597-udc.c usb: gadget: r8a66597-udc: add ep capabilities support 2015-08-04 12:26:53 -05:00
r8a66597-udc.h
s3c2410_udc.c usb: gadget: s3c2410_udc: add ep capabilities support 2015-08-04 12:26:54 -05:00
s3c2410_udc.h
s3c-hsudc.c usb: gadget: s3c-hsudc: add ep capabilities support 2015-08-04 12:26:53 -05:00
udc-core.c usb: gadget: udc-core: independent registration of gadgets and gadget drivers 2015-12-16 10:07:27 -06:00
udc-xilinx.c usb: gadget: udc-xilinx: add ep capabilities support 2015-08-04 12:26:55 -05:00