openwrt/staging/blogic.git
11 years agousb: gadget: imx_udc: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:35:40 +0000 (14:35 +0200)]
usb: gadget: imx_udc: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: goku_udc: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:35:31 +0000 (14:35 +0200)]
usb: gadget: goku_udc: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: fusb300_udc: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:35:24 +0000 (14:35 +0200)]
usb: gadget: fusb300_udc: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: fsl_udc_core: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:35:15 +0000 (14:35 +0200)]
usb: gadget: fsl_udc_core: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: fsl_qe_udc: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:35:06 +0000 (14:35 +0200)]
usb: gadget: fsl_qe_udc: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: dummy_hcd: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:34:49 +0000 (14:34 +0200)]
usb: gadget: dummy_hcd: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: bcm63xx_udc: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:34:33 +0000 (14:34 +0200)]
usb: gadget: bcm63xx_udc: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: atmel_usba_udc: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:34:17 +0000 (14:34 +0200)]
usb: gadget: atmel_usba_udc: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: at91_udc: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:16:21 +0000 (14:16 +0200)]
usb: gadget: at91_udc: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: amd5536udc: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:15:51 +0000 (14:15 +0200)]
usb: gadget: amd5536udc: don't touch gadget.dev.driver

udc-core handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: dwc3: gadget: don't touch gadget.dev.driver
Felipe Balbi [Tue, 26 Feb 2013 12:15:15 +0000 (14:15 +0200)]
usb: dwc3: gadget: don't touch gadget.dev.driver

udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: udc-core: initialize gadget->dev.driver
Felipe Balbi [Tue, 26 Feb 2013 11:51:24 +0000 (13:51 +0200)]
usb: gadget: udc-core: initialize gadget->dev.driver

if we initialize gadget->dev.driver ourselves,
UDC drivers won't have to do the same, so we
can remove some duplicated code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: fsl_udc_core: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 12:59:40 +0000 (14:59 +0200)]
usb: gadget: fsl_udc_core: remove unnecessary initializations

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>
11 years agousb: musb: gadget: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:25:21 +0000 (11:25 +0200)]
usb: musb: gadget: remove unnecessary initializations

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>
11 years agousb: gadget: s3c2410_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:24:30 +0000 (11:24 +0200)]
usb: gadget: s3c2410_udc: remove unnecessary initializations

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>
11 years agousb: gadget: s3c-hsudc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:23:52 +0000 (11:23 +0200)]
usb: gadget: s3c-hsudc: remove unnecessary initializations

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>
11 years agousb: gadget: s3c-hsotg: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:23:05 +0000 (11:23 +0200)]
usb: gadget: s3c-hsotg: remove unnecessary initializations

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>
11 years agousb: gadget: r8a66597-udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:21:35 +0000 (11:21 +0200)]
usb: gadget: r8a66597-udc: remove unnecessary initializations

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>
11 years agousb: gadget: pxa27x_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:20:39 +0000 (11:20 +0200)]
usb: gadget: pxa27x_udc: remove unnecessary initializations

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>
11 years agousb: gadget: pxa25x_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:19:56 +0000 (11:19 +0200)]
usb: gadget: pxa25x_udc: remove unnecessary initializations

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>
11 years agousb: gadget: pch_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:17:25 +0000 (11:17 +0200)]
usb: gadget: pch_udc: remove unnecessary initializations

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>
11 years agousb: gadget: omap_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:16:36 +0000 (11:16 +0200)]
usb: gadget: omap_udc: remove unnecessary initializations

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>
11 years agousb: gadget: net2280: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:15:29 +0000 (11:15 +0200)]
usb: gadget: net2280: remove unnecessary initializations

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>
11 years agousb: gadget: net2272: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:14:54 +0000 (11:14 +0200)]
usb: gadget: net2272: remove unnecessary initializations

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>
11 years agousb: gadget: mv_udc_core: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:14:14 +0000 (11:14 +0200)]
usb: gadget: mv_udc_core: remove unnecessary initializations

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>
11 years agousb: gadget: mv_u3d_core: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:13:28 +0000 (11:13 +0200)]
usb: gadget: mv_u3d_core: remove unnecessary initializations

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>
11 years agousb: dwc3: gadget: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:10:03 +0000 (11:10 +0200)]
usb: dwc3: gadget: remove unnecessary initializations

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>
11 years agousb: gadget: m66592-udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:07:39 +0000 (11:07 +0200)]
usb: gadget: m66592-udc: remove unnecessary initializations

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>
11 years agousb: gadget: imx_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:06:17 +0000 (11:06 +0200)]
usb: gadget: imx_udc: remove unnecessary initializations

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>
11 years agousb: gadget: goku_udc: remove unused macro
Felipe Balbi [Tue, 26 Feb 2013 09:05:19 +0000 (11:05 +0200)]
usb: gadget: goku_udc: remove unused macro

DMA_ADDR_INVALID isn't used anymore on goku_udc,
we can just delete it.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: goku_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:04:34 +0000 (11:04 +0200)]
usb: gadget: goku_udc: remove unnecessary initializations

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>
11 years agousb: gadget: fusb300_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 09:03:46 +0000 (11:03 +0200)]
usb: gadget: fusb300_udc: remove unnecessary initializations

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>
11 years agousb: gadget: bcm63xx_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 08:57:06 +0000 (10:57 +0200)]
usb: gadget: bcm63xx_udc: remove unnecessary initializations

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>
11 years agousb: gadget: atmel_usba_udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 08:54:46 +0000 (10:54 +0200)]
usb: gadget: atmel_usba_udc: remove unnecessary initializations

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>
11 years agousb: gadget: amd5536udc: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 08:53:40 +0000 (10:53 +0200)]
usb: gadget: amd5536udc: remove unnecessary initializations

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>
11 years agousb: gadget: chipidea: remove unnecessary initializations
Felipe Balbi [Tue, 26 Feb 2013 08:52:43 +0000 (10:52 +0200)]
usb: gadget: chipidea: remove unnecessary initializations

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>
11 years agousb: gadget: udc-core: initialize parent
Felipe Balbi [Tue, 26 Feb 2013 08:59:41 +0000 (10:59 +0200)]
usb: gadget: udc-core: initialize parent

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>
11 years agousb: gadget: udc-core: copy dma-related parameters from parent
Felipe Balbi [Tue, 26 Feb 2013 08:50:42 +0000 (10:50 +0200)]
usb: gadget: udc-core: copy dma-related parameters from parent

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>
11 years agousb: gadget: pxa27x_udc: switch over to module_platform_driver
Felipe Balbi [Mon, 25 Feb 2013 07:47:50 +0000 (09:47 +0200)]
usb: gadget: pxa27x_udc: switch over to module_platform_driver

just removing some boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: pxa27x_udc: drop ARCH_PXA dependency
Felipe Balbi [Mon, 25 Feb 2013 07:46:18 +0000 (09:46 +0200)]
usb: gadget: pxa27x_udc: drop ARCH_PXA dependency

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>
11 years agousb: dwc3: core: avoid checkpatch.pl warning
Felipe Balbi [Fri, 22 Feb 2013 14:31:07 +0000 (16:31 +0200)]
usb: dwc3: core: avoid checkpatch.pl warning

trivial patch to avoid "over 80-chars" rule
break. No functional changes.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: dwc3: debugfs: improve debugfs file creation
Felipe Balbi [Fri, 22 Feb 2013 14:24:49 +0000 (16:24 +0200)]
usb: dwc3: debugfs: improve debugfs file creation

when commit 388e5c5 (usb: dwc3: remove dwc3
dependency on host AND gadget.) changed the
way debugfs files are created, it failed to
note that 'mode' is necessary in Dual Role
mode only while 'testmode' and 'link_state'
are valid in Dual Role and Peripheral-only
builds. Fix this while also converting pre-
processor conditional to C conditionals.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: dwc3: debugfs: mark our regset structure const
Felipe Balbi [Fri, 22 Feb 2013 14:17:31 +0000 (16:17 +0200)]
usb: dwc3: debugfs: mark our regset structure const

nobody should be modifying that structure and
debugfs has already being fixed to take const
arguments, so we won't cause any new compile
warnings.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: dwc3: debugfs: when unknown, print only the state value
Felipe Balbi [Fri, 22 Feb 2013 12:29:39 +0000 (14:29 +0200)]
usb: dwc3: debugfs: when unknown, print only the state value

whenever we grab an unknown link_state we
were printing the entire register value as
a integer but that's hardly useful; instead,
let's print only the bogus state value.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: dwc3: debugfs: add two missing Link States
Felipe Balbi [Fri, 22 Feb 2013 12:28:54 +0000 (14:28 +0200)]
usb: dwc3: debugfs: add two missing Link States

for Reset and Resume we were going to print
"UNKNOWN" when we actually knew what those
were.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: dwc3: remove our homebrew state mechanism
Felipe Balbi [Fri, 25 Jan 2013 09:28:19 +0000 (11:28 +0200)]
usb: dwc3: remove our homebrew state mechanism

We can reuse the generic implementation via
our struct usb_gadget.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: dwc3: gadget: implement gadget state tracking
Felipe Balbi [Mon, 19 Dec 2011 11:01:52 +0000 (13:01 +0200)]
usb: dwc3: gadget: implement gadget state tracking

make use of the previously introduced gadget->state
field.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: introduce gadget state tracking
Felipe Balbi [Mon, 19 Dec 2011 10:57:04 +0000 (12:57 +0200)]
usb: gadget: introduce gadget state tracking

that's useful information to expose to userland.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: common: introduce usb_state_string()
Felipe Balbi [Thu, 24 Jan 2013 20:29:48 +0000 (22:29 +0200)]
usb: common: introduce usb_state_string()

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>
11 years agousb: dwc3: gadget: move to threaded IRQ
Felipe Balbi [Thu, 30 Jun 2011 13:57:15 +0000 (16:57 +0300)]
usb: dwc3: gadget: move to threaded IRQ

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>
11 years agousb: dwc3: add count field to event buffer
Felipe Balbi [Mon, 4 Jul 2011 17:23:14 +0000 (20:23 +0300)]
usb: dwc3: add count field to event buffer

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>
11 years agousb: dwc3: add a flags field to event buffer
Felipe Balbi [Mon, 4 Jul 2011 17:20:04 +0000 (20:20 +0300)]
usb: dwc3: add a flags field to event buffer

that way we know if a particular event buffer
has pending events, or not.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: dwc3: core: remove bogus comment to our structure
Felipe Balbi [Fri, 22 Feb 2013 10:47:07 +0000 (12:47 +0200)]
usb: dwc3: core: remove bogus comment to our structure

that irq field has been removed already. This
patch just removes its documentation.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: musb: Kconfig: drop unnecessary dependencies
Felipe Balbi [Wed, 6 Feb 2013 08:23:37 +0000 (10:23 +0200)]
usb: musb: Kconfig: drop unnecessary dependencies

those glues can build cleanly anywhere.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: musb: gadget: fix compile warning
Felipe Balbi [Wed, 6 Feb 2013 08:19:15 +0000 (10:19 +0200)]
usb: musb: gadget: fix compile warning

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>
11 years agousb: musb: dsps: fix possible compile warning
Felipe Balbi [Wed, 6 Feb 2013 07:57:18 +0000 (09:57 +0200)]
usb: musb: dsps: fix possible compile warning

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>
11 years agousb: musb: ux500_dma: kill compile warnings
Felipe Balbi [Wed, 6 Feb 2013 07:53:01 +0000 (09:53 +0200)]
usb: musb: ux500_dma: kill compile warnings

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>
11 years agousb: musb: dsps: add missing include
Felipe Balbi [Wed, 6 Feb 2013 07:47:58 +0000 (09:47 +0200)]
usb: musb: dsps: add missing include

<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>
11 years agousb: musb: make davinci and da8xx glues depend on BROKEN
Felipe Balbi [Wed, 6 Feb 2013 07:24:55 +0000 (09:24 +0200)]
usb: musb: make davinci and da8xx glues depend on BROKEN

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>
11 years agousb: musb: force PIO-only if we're building multiplatform kernels
Felipe Balbi [Wed, 6 Feb 2013 07:22:47 +0000 (09:22 +0200)]
usb: musb: force PIO-only if we're building multiplatform kernels

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>
11 years agousb: musb: gadget: delete wrong comment
Felipe Balbi [Mon, 4 Feb 2013 17:57:23 +0000 (19:57 +0200)]
usb: musb: gadget: delete wrong comment

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>
11 years agousb: musb: switch over to devm_ioremap_resource()
Felipe Balbi [Mon, 4 Feb 2013 17:04:45 +0000 (19:04 +0200)]
usb: musb: switch over to devm_ioremap_resource()

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>
11 years agousb: musb: core: remove unnecessary pr_info()
Felipe Balbi [Fri, 1 Feb 2013 21:33:50 +0000 (23:33 +0200)]
usb: musb: core: remove unnecessary pr_info()

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>
11 years agousb: dwc3: pci: add basic suspend/resume support
Felipe Balbi [Mon, 11 Feb 2013 09:36:22 +0000 (11:36 +0200)]
usb: dwc3: pci: add basic suspend/resume support

this patch adds basic PM support for the
PCI glue layer.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: dwc3: exynos: add basic suspend/resume support
Vikas Sajjan [Tue, 16 Oct 2012 09:45:38 +0000 (15:15 +0530)]
usb: dwc3: exynos: add basic suspend/resume support

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>
11 years agousb: dwc3: omap: add basic suspend/resume support
Felipe Balbi [Mon, 11 Feb 2013 09:12:02 +0000 (11:12 +0200)]
usb: dwc3: omap: add basic suspend/resume support

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>
11 years agousb: dwc3: omap: remove unused fields from private structure
Felipe Balbi [Mon, 11 Feb 2013 09:07:34 +0000 (11:07 +0200)]
usb: dwc3: omap: remove unused fields from private structure

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>
11 years agousb: dwc3: omap: introduce enable/disable IRQ methods
Felipe Balbi [Mon, 11 Feb 2013 09:03:59 +0000 (11:03 +0200)]
usb: dwc3: omap: introduce enable/disable IRQ methods

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>
11 years agousb: dwc3: core: add power management support
Felipe Balbi [Mon, 30 Apr 2012 11:56:33 +0000 (14:56 +0300)]
usb: dwc3: core: add power management support

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>
11 years agousb: dwc3: gadget: save state of pullups
Felipe Balbi [Fri, 8 Feb 2013 15:55:58 +0000 (17:55 +0200)]
usb: dwc3: gadget: save state of pullups

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>
11 years agousb: dwc3: gadget: introduce and use enable/disable irq methods
Felipe Balbi [Fri, 8 Feb 2013 13:24:04 +0000 (15:24 +0200)]
usb: dwc3: gadget: introduce and use enable/disable irq methods

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>
11 years agousb: dwc3: core: explicitly setup and cleanup event buffers
Felipe Balbi [Fri, 8 Feb 2013 13:15:11 +0000 (15:15 +0200)]
usb: dwc3: core: explicitly setup and cleanup event buffers

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>
11 years agousb: gadget: mv_udc_core: switch over to usb_gadget_map/unmap_request()
Felipe Balbi [Mon, 28 Jan 2013 15:19:34 +0000 (17:19 +0200)]
usb: gadget: mv_udc_core: switch over to usb_gadget_map/unmap_request()

we have generic implementations for a reason,
let's use them

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: lpc32xx_udc: switch over to usb_gadget_map/unmap_request()
Felipe Balbi [Mon, 28 Jan 2013 15:13:27 +0000 (17:13 +0200)]
usb: gadget: lpc32xx_udc: switch over to usb_gadget_map/unmap_request()

we have generic implementations for a reason,
let's use them

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: fusb300: switch over to usb_gadget_map/unmap_request()
Felipe Balbi [Mon, 28 Jan 2013 15:08:28 +0000 (17:08 +0200)]
usb: gadget: fusb300: switch over to usb_gadget_map/unmap_request()

we have generic implementations for a reason,
let's use them

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: fsl_udc_core: switch over to usb_gadget_map/unmap_request()
Felipe Balbi [Mon, 28 Jan 2013 15:03:21 +0000 (17:03 +0200)]
usb: gadget: fsl_udc_core: switch over to usb_gadget_map/unmap_request()

we have generic implementations for a reason,
let's use them

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: atmel_usba_udc: switch over to usb_gadget_map/unmap_request()
Felipe Balbi [Mon, 28 Jan 2013 14:57:02 +0000 (16:57 +0200)]
usb: gadget: atmel_usba_udc: switch over to usb_gadget_map/unmap_request()

we have generic implementations for a reason,
let's use them.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: amd5536udc: remove unused structure member
Felipe Balbi [Mon, 28 Jan 2013 12:51:34 +0000 (14:51 +0200)]
usb: gadget: amd5536udc: remove unused structure member

that member isn't used anywhere in the driver
and be removed with no mercy.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: s3c-hsotg: switch over to usb_gadget_map/unmap_request()
Felipe Balbi [Mon, 28 Jan 2013 12:48:36 +0000 (14:48 +0200)]
usb: gadget: s3c-hsotg: switch over to usb_gadget_map/unmap_request()

we have generic implementations for a reason,
let's use them.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: drop now unnecessary flag
Felipe Balbi [Thu, 24 Jan 2013 15:41:00 +0000 (17:41 +0200)]
usb: gadget: drop now unnecessary flag

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>
11 years agousb: chipidea: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 15:36:39 +0000 (17:36 +0200)]
usb: chipidea: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: pxa27x_udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 15:29:39 +0000 (17:29 +0200)]
usb: gadget: pxa27x_udc: let udc-core manage gadget->dev

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>
11 years agousb: gadget: pxa25x_udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 15:28:30 +0000 (17:28 +0200)]
usb: gadget: pxa25x_udc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: renesas_usbhs: gadget: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 15:08:01 +0000 (17:08 +0200)]
usb: renesas_usbhs: gadget: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: s3c2410_udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 15:06:42 +0000 (17:06 +0200)]
usb: gadget: s3c2410_udc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: s3c-hsudc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 15:04:56 +0000 (17:04 +0200)]
usb: gadget: s3c-hsudc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: s3c-hsotg: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 15:03:10 +0000 (17:03 +0200)]
usb: gadget: s3c-hsotg: let udc-core manage gadget->dev

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>
11 years agousb: gadget: r8a66597-udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 15:01:28 +0000 (17:01 +0200)]
usb: gadget: r8a66597-udc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: pch_udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:56:35 +0000 (16:56 +0200)]
usb: gadget: pch_udc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: net2280: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:52:14 +0000 (16:52 +0200)]
usb: gadget: net2280: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: net2272: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:48:12 +0000 (16:48 +0200)]
usb: gadget: net2272: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: mv_udc_core: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:43:47 +0000 (16:43 +0200)]
usb: gadget: mv_udc_core: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: mv_u3d_core: fix a compile warning
Felipe Balbi [Thu, 24 Jan 2013 14:38:19 +0000 (16:38 +0200)]
usb: gadget: mv_u3d_core: fix a compile warning

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>
11 years agousb: gadget: mv_u3d_core: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:37:24 +0000 (16:37 +0200)]
usb: gadget: mv_u3d_core: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: m66592-udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:35:12 +0000 (16:35 +0200)]
usb: gadget: m66592-udc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: lpc32xx_udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:26:46 +0000 (16:26 +0200)]
usb: gadget: lpc32xx_udc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: imx_udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:22:57 +0000 (16:22 +0200)]
usb: gadget: imx_udc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: goku_udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:17:45 +0000 (16:17 +0200)]
usb: gadget: goku_udc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: fusb300_udc: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:14:45 +0000 (16:14 +0200)]
usb: gadget: fusb300_udc: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: fsl_udc_core: let udc-core manage gadget->dev
Felipe Balbi [Thu, 24 Jan 2013 14:13:20 +0000 (16:13 +0200)]
usb: gadget: fsl_udc_core: let udc-core manage gadget->dev

By simply setting a flag, we can drop some
boilerplate code.

Signed-off-by: Felipe Balbi <balbi@ti.com>