aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
Commit message (Collapse)AuthorAge
...
| * | usb: gadget: mv_u3d_core: remove unnecessary initializationsFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | udc-core now sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: m66592-udc: remove unnecessary initializationsFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | udc-core now sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: imx_udc: remove unnecessary initializationsFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | udc-core now sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: goku_udc: remove unused macroFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | DMA_ADDR_INVALID isn't used anymore on goku_udc, we can just delete it. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: goku_udc: remove unnecessary initializationsFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | udc-core now sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: fusb300_udc: remove unnecessary initializationsFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | udc-core nos sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: bcm63xx_udc: remove unnecessary initializationsFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | udc-core now sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: atmel_usba_udc: remove unnecessary initializationsFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | udc-core now sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: amd5536udc: remove unnecessary initializationsFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | udc-core now sets dma-related and parent fields for us, we don't need to do it ourselves. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: udc-core: initialize parentFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | if udc-core always does it, we can delete some extra lines from all UDC drivers. Besides, it avoids mistakes from happening and propagating. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: udc-core: copy dma-related parameters from parentFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | gadget's device pointer now is guaranteed to have valid dma_mask, dma_parms and coherent_dma_mask fields since we're always copying from our parent device. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: pxa27x_udc: switch over to module_platform_driverFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | just removing some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: pxa27x_udc: drop ARCH_PXA dependencyFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | This driver can compile in any arch quite easily by just removing a few headers and dropping cpu_is_* check from module_init. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: introduce gadget state trackingFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | that's useful information to expose to userland. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: mv_udc_core: switch over to usb_gadget_map/unmap_request()Felipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | we have generic implementations for a reason, let's use them Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: lpc32xx_udc: switch over to usb_gadget_map/unmap_request()Felipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | we have generic implementations for a reason, let's use them Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: fusb300: switch over to usb_gadget_map/unmap_request()Felipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | we have generic implementations for a reason, let's use them Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: fsl_udc_core: switch over to usb_gadget_map/unmap_request()Felipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | we have generic implementations for a reason, let's use them Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: atmel_usba_udc: switch over to usb_gadget_map/unmap_request()Felipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | we have generic implementations for a reason, let's use them. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: amd5536udc: remove unused structure memberFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | that member isn't used anywhere in the driver and be removed with no mercy. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: s3c-hsotg: switch over to usb_gadget_map/unmap_request()Felipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | we have generic implementations for a reason, let's use them. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: drop now unnecessary flagFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need the ->register_my_device flag anymore because all UDC drivers have been properly converted. Let's remove every history of it. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: pxa27x_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: pxa25x_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: s3c2410_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: s3c-hsudc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: s3c-hsotg: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Reviewed-by: Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: r8a66597-udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: pch_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: net2280: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: net2272: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: mv_udc_core: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: mv_u3d_core: fix a compile warningFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following compile warning: mv_u3d_core.c:1766:12: warning: 'mv_u3d_remove' \ defined but not used [-Wunused-function] Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: mv_u3d_core: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: m66592-udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: lpc32xx_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: imx_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: goku_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: fusb300_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: fsl_udc_core: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: fsl_qe_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: dummy_hcd: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: bcm63xx_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: atmel_usba_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: at91_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we can remove some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: amd5536udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: omap_udc: let udc-core manage gadget->devFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | By simply setting a flag, we drop some boilerplate code. Signed-off-by: Felipe Balbi <balbi@ti.com>
| * | usb: gadget: udc-core: allow udc class register gadget deviceFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently all UDC drivers are calling device_register() before calling usb_add_gadget_udc(). In order to avoid code duplication, we can allow udc-core.c register that device. However that would become a really large patch, so to cope with the meanwhile and allow us to write bite-sized patches, we're adding a flag which will be set by UDC driver once it removes the code for registering the gadget device. Once all are converted, the new flag will be removed. Reviewed-by: Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
* | | usb: Fix compile error by selecting USB_OTG_UTILSRoland Stigge2013-03-27
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current lpc32xx_defconfig breaks like this, caused by recent phy restructuring: LD init/built-in.o drivers/built-in.o: In function `usb_hcd_nxp_probe': drivers/usb/host/ohci-nxp.c:224: undefined reference to `isp1301_get_client' drivers/built-in.o: In function `lpc32xx_udc_probe': drivers/usb/gadget/lpc32xx_udc.c:3104: undefined reference to `isp1301_get_client' distcc[27867] ERROR: compile (null) on localhost failed make: *** [vmlinux] Error 1 Caused by 1c2088812f095df77f4b3224b65db79d7111a300 (usb: Makefile: fix drivers/usb/phy/ Makefile entry) This patch fixes this by selecting USB_OTG_UTILS in Kconfig which causes the phy driver to be built again. Signed-off-by: Roland Stigge <stigge@antcom.de> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | Merge tag 'fixes-for-v3.9-rc4' of ↵Greg Kroah-Hartman2013-03-21
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-linus Felipe writes: usb: fixes for v3.9-rc4 udc-core learned that it shouldn't use invalid pointers when unloading a gadget driver. net2272 and net2280 got a fix for a regression caused by the udc_start/udc_stop conversion. We're defining a static inline no-op for otg_ulpi_create() to prevent build errors when that driver isn't enabled. FunctionFS got a fix for an off-by-one error when binding and unbinding instances of FunctionFS. MUSB learned that it shouldn't try to unmap buffers which weren't previously mapped. f_rndis got a fix for a possible NULL pointer dereference in a debugging message code. MUSB's DA8xx glue layer got a build fix due to a typo.