aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* usb: common: introduce usb_state_string()Felipe Balbi2013-03-18
| | | | | | | | | this function will receive enum usb_device_state and return a human-readable string from it or, case an unknown value is passed as argument, the string "UNKNOWN". Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: gadget: move to threaded IRQFelipe Balbi2013-03-18
| | | | | | | | | | | by moving to threaded IRQs, we allow our IRQ priorities to be configurable when running with realtime patch. Also, since we're running in thread context, we can call functions which might sleep, such as sysfs_notify() without problems. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: add count field to event bufferFelipe Balbi2013-03-18
| | | | | | | | we can cache the last read value of the event buffer count register on this field, for later handling. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: add a flags field to event bufferFelipe Balbi2013-03-18
| | | | | | | that way we know if a particular event buffer has pending events, or not. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: core: remove bogus comment to our structureFelipe Balbi2013-03-18
| | | | | | | that irq field has been removed already. This patch just removes its documentation. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: Kconfig: drop unnecessary dependenciesFelipe Balbi2013-03-18
| | | | | | those glues can build cleanly anywhere. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: gadget: fix compile warningFelipe Balbi2013-03-18
| | | | | | | | | Fix the following compile warning: drivers/usb/musb/musb_gadget.c: In function ‘rxstate’: drivers/usb/musb/musb_gadget.c:714:22: warning: comparison of distinct pointer types lacks a cast [enabled by default] Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: dsps: fix possible compile warningFelipe Balbi2013-03-18
| | | | | | | | if CONFIG_OF is disabled, np will be unused and that will give us a compile warning. This patch just avoids it. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: ux500_dma: kill compile warningsFelipe Balbi2013-03-18
| | | | | | | | | | | Fix the following compile warnings: drivers/usb/musb/ux500_dma.c: In function ‘ux500_configure_channel’: drivers/usb/musb/ux500_dma.c:96:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘dma_addr_t’ [-Wformat] drivers/usb/musb/ux500_dma.c: In function ‘ux500_dma_is_compatible’: drivers/usb/musb/ux500_dma.c:195:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: dsps: add missing includeFelipe Balbi2013-03-18
| | | | | | | | <linux/sizes.h> is the header defining SZ_4 and SZ_16M, we shouldn't depend on indirect inclusion so let's explicitly include it. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: make davinci and da8xx glues depend on BROKENFelipe Balbi2013-03-18
| | | | | | | | | | | | | | | | | | those two glues are still including <mach/> headers and no active developement has been going on those glues for quite some time. Apparently, for da8xx glue, only initial commit 3ee076de (usb: musb: introduce DA8xx/OMAP-L1x glue layer) has been tested. All other patches seem to have been compile-tested only. For davinci glue layer, last real commit dates back from 2010, with commit f405387 (USB: MUSB: fix kernel WARNING/oops when unloading module in OTG mode). Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: force PIO-only if we're building multiplatform kernelsFelipe Balbi2013-03-18
| | | | | | | | | | MUSB still needs lots of work on the DMA part if we want to enable multiple DMA engines on a multiplatform kernel. Meanwhile, we're forcing PIO-only so that we, at least, have a working driver. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: gadget: delete wrong commentFelipe Balbi2013-03-18
| | | | | | | | | Those comments haven't been updated for a long time, so much that they don't make sense anymore. Best to remove them. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: switch over to devm_ioremap_resource()Felipe Balbi2013-03-18
| | | | | | | | this will make sure that request_memory_region() will be called and that we don't need to manually call iounmap() on ->remove(). Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: musb: core: remove unnecessary pr_info()Felipe Balbi2013-03-18
| | | | | | | there's really no need for that message. It's been a while since it printed something useful. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: pci: add basic suspend/resume supportFelipe Balbi2013-03-18
| | | | | | | this patch adds basic PM support for the PCI glue layer. Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: exynos: add basic suspend/resume supportVikas Sajjan2013-03-18
| | | | | | | | | | | | | | | | Adds suspend and resume callbacks to exynos dwc3 driver as part of power management support. This change does gating of dwc3 clock during suspend/resume cycles. Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com> Signed-off-by: Vikas C Sajjan <vikas.sajjan@linaro.org> CC: Doug Anderson <dianders@chromium.org> Tested-by: Vivek Gautam <gautam.vivek@samsung.com> [ balbi@ti.com : refreshed to current linus/master ] Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: omap: add basic suspend/resume supportFelipe Balbi2013-03-18
| | | | | | | | this patch implements basic suspend/resume functionality for the OMAP glue layer. Tested-by: Vivek Gautam <gautam.vivek@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: omap: remove unused fields from private structureFelipe Balbi2013-03-18
| | | | | | | | we're not using those fields of the structure, might as well remove them. Tested-by: Vivek Gautam <gautam.vivek@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: omap: introduce enable/disable IRQ methodsFelipe Balbi2013-03-18
| | | | | | | they will be re-used on suspend/resume implementation. Tested-by: Vivek Gautam <gautam.vivek@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: core: add power management supportFelipe Balbi2013-03-18
| | | | | | | | | | | | | Add support for basic power management on the dwc3 driver. While there is still lots to improve for full PM support, this minimal patch will already make sure that we survive suspend-to-ram and suspend-to-disk without major issues. Cc: Vikas C Sajjan <vikas.sajjan@linaro.org> Tested-by: Vivek Gautam <gautam.vivek@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: gadget: save state of pullupsFelipe Balbi2013-03-18
| | | | | | | | This will be used during resume to verify if we should reconnect our pullups or not. Tested-by: Vivek Gautam <gautam.vivek@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: gadget: introduce and use enable/disable irq methodsFelipe Balbi2013-03-18
| | | | | | | | | | | | | we don't need to enable IRQs until we have a gadget driver loaded and ready to work, so let's delay IRQ enable to ->udc_start() and IRQ disable to ->udc_stop(). While at that, also move the related use of request_irq() and free_irq(). Tested-by: Vivek Gautam <gautam.vivek@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
* usb: dwc3: core: explicitly setup and cleanup event buffersFelipe Balbi2013-03-18
| | | | | | | | | Make the call to dwc3_event_buffers_setup() and dwc3_event_buffers_cleanup() explicit, so it's easier to implement PM. Tested-by: Vivek Gautam <gautam.vivek@samsung.com> 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: chipidea: 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: 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: renesas_usbhs: gadget: 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>