]>
git.karo-electronics.de Git - linux-beck.git/log
Felipe Balbi [Thu, 7 Mar 2013 09:01:15 +0000 (11:01 +0200)]
usb: phy: move all PHY drivers to drivers/usb/phy/
that's a much more reasonable location for
those drivers. It helps us saving drivers/usb/otg/
for when we actually start adding generic OTG
code.
Also completely delete drivers/usb/otg/ as there's
nothing left there.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Thu, 7 Mar 2013 08:49:27 +0000 (10:49 +0200)]
usb: phy: convert EXPORT_SYMBOL to EXPORT_SYMBOL_GPL
we only want GPL users for our generic functions,
so let's switch over to EXPORT_SYMBOL_GPL.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Thu, 7 Mar 2013 08:45:56 +0000 (10:45 +0200)]
usb: otg: move usb_otg_state_string to usb-common.c
otg.c only had a single function definition
which might make more sense to be placed in
usb-common.c. While doing that, we also delete
otg.c since it's now empty.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Thu, 7 Mar 2013 08:39:57 +0000 (10:39 +0200)]
usb: otg: prefix otg_state_string with usb_
all other functions under drivers/usb/ start
with usb_, let's do the same thing.
This patch is in preparation for moving otg_state_string
to usb-common.c and deleting otg.c completely.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Thu, 5 May 2011 13:21:59 +0000 (16:21 +0300)]
usb: dwc3: gadget: use num_(in|out)_eps from HW params
that way we will only tell gadget framework about
the endpoints we actually have.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Thu, 5 May 2011 12:53:10 +0000 (15:53 +0300)]
usb: dwc3: calculate the number of endpoints
hwparams2 holds the number of endpoints which
were selected during RTL generation, we can
use that on our driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Syam Sidhardhan [Tue, 5 Mar 2013 19:34:50 +0000 (01:04 +0530)]
usb: otg: fsl_otg: remove redundant NULL check before kfree
kfree on NULL pointer is a no-op.
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Fabio Baltieri [Wed, 20 Feb 2013 08:53:39 +0000 (09:53 +0100)]
usb: musb: drop dangling CONFIG_USB_MUSB_DEBUG
CONFIG_USB_MUSB_DEBUG option was removed in
5c8a86e usb: musb: drop unneeded musb_debug trickery
to cleanup the code from driver specific debug facilities. This patch
drops the last references to the musb debug config option,
unconditionally enabling all debug code paths, thus letting that code
being dropped at compile time if not needed.
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Sachin Kamat [Tue, 5 Mar 2013 04:12:15 +0000 (09:42 +0530)]
usb: gadget: fsl_udc_core: Use module_platform_driver_probe macro
module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Li Yang <leoli@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Vivek Gautam [Sat, 2 Mar 2013 13:25:24 +0000 (18:55 +0530)]
usb: dwc3: set 'mode' based on selected Kconfig choices
Now that machines may select dwc3's working mode (HOST only,
GADGET only or DUAL_ROLE) via Kconfig, let's set dwc3's mode
based on that, rather than fixing it to whatever hardware
says.
This way we can skip initializing Gadget/Host in case
we are using Host-only/Gadget-only mode respectively.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Marc Kleine-Budde [Thu, 28 Feb 2013 10:52:30 +0000 (11:52 +0100)]
usb: phy: mxs: use readl(), writel() instead of the _relaxed() versions
This patch converts the mxs-phy driver from readl_relaxed(), writel_relaxed()
to the plain readl(), writel() functions, which are available on all platforms.
This is done to enable compile time testing on non ARM platforms.
Reported-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Sascha Hauer [Wed, 27 Feb 2013 14:16:30 +0000 (15:16 +0100)]
usb: phy: mxs-phy: register phy with framework
We now have usb_add_phy_dev(), so use it to register with the framework
to be able to find the phy from the USB driver.
Tested-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Reviewed-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Sascha Hauer [Wed, 27 Feb 2013 14:16:28 +0000 (15:16 +0100)]
usb: phy: move bulk of otg/otg.c to phy/phy.c
Most of otg/otg.c is not otg specific, but phy specific, so move it
to the phy directory.
Tested-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Reported-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 18 Sep 2012 18:39:24 +0000 (21:39 +0300)]
usb: dwc3: workaround: unexpected transtion U3 -> RESUME
In DWC3 versions < 2.50a configured without
Hibernation mode enabled, there will be an
extra link status change interrupt if device
detects host-initiated U3 exit.
In that case, core will generate an unnecessary
U3 -> RESUME transition which should be ignored
by the driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 18 Sep 2012 18:22:32 +0000 (21:22 +0300)]
usb: dwc3: core: define more revisions
Some new revisions of the DWC3 core have
been released, let's add our defines to help
implementing known erratas.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 17:15:14 +0000 (19:15 +0200)]
usb: gadget: udc-core: anywone can read 'speed' attributes
current code only allows the file owner (usually
root) to read current_speed and maximum_speed
sysfs files. Let anyone read those.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:25:41 +0000 (15:25 +0200)]
usb: gadget: udc-core: remove protection when setting gadget.dev.release
now that no UDC driver touches gadget.dev.release
we can assign our release function to it without
being afraid of breaking anything.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:51 +0000 (15:15 +0200)]
usb: renesas: gadget: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:28 +0000 (15:15 +0200)]
usb: musb: gadget: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:28 +0000 (15:15 +0200)]
usb: gadget: s3c-hsotg: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:27 +0000 (15:15 +0200)]
usb: gadget: r8a66597-udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:27 +0000 (15:15 +0200)]
usb: gadget: pch_udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:27 +0000 (15:15 +0200)]
usb: gadget: omap_udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:27 +0000 (15:15 +0200)]
usb: gadget: net2280: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:27 +0000 (15:15 +0200)]
usb: gadget: net2272: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:27 +0000 (15:15 +0200)]
usb: gadget: mv_udc_core: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:27 +0000 (15:15 +0200)]
usb: gadget: mv_u3d_core: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:26 +0000 (15:15 +0200)]
usb: gadget: m66592-udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:26 +0000 (15:15 +0200)]
usb: gadget: goku_udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:26 +0000 (15:15 +0200)]
usb: gadget: fusb300_udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:26 +0000 (15:15 +0200)]
usb: gadget: fsl_udc_core: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:26 +0000 (15:15 +0200)]
usb: gadget: fsl_qe_udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:26 +0000 (15:15 +0200)]
usb: gadget: dummy_hcd: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:26 +0000 (15:15 +0200)]
usb: gadget: bcm63xx_udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:15:25 +0000 (15:15 +0200)]
usb: gadget: amd5536udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:11:05 +0000 (15:11 +0200)]
usb: dwc3: gadget: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 13:10:51 +0000 (15:10 +0200)]
usb: chipidea: udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 12:47:44 +0000 (14:47 +0200)]
usb: gadget: udc-core: introduce usb_add_gadget_udc_release()
not all UDC drivers need a proper release function,
for those which don't need it, we udc-core will provide
a no-op release method so we can remove "redefinition"
of such methods in almost every UDC driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi [Tue, 26 Feb 2013 12:37:17 +0000 (14:37 +0200)]
usb: renesas: 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>
Felipe Balbi [Tue, 26 Feb 2013 12:37:12 +0000 (14:37 +0200)]
usb: gadget: s3c2410_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>
Felipe Balbi [Tue, 26 Feb 2013 12:37:04 +0000 (14:37 +0200)]
usb: gadget: s3c-hsudc: 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>
Felipe Balbi [Tue, 26 Feb 2013 12:36:58 +0000 (14:36 +0200)]
usb: gadget: s3c-hsotg: 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>
Felipe Balbi [Tue, 26 Feb 2013 12:36:52 +0000 (14:36 +0200)]
usb: gadget: pxa27x_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>
Felipe Balbi [Tue, 26 Feb 2013 12:36:47 +0000 (14:36 +0200)]
usb: gadget: pxa25x_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>
Felipe Balbi [Tue, 26 Feb 2013 12:36:40 +0000 (14:36 +0200)]
usb: gadget: pch_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>
Felipe Balbi [Tue, 26 Feb 2013 12:36:26 +0000 (14:36 +0200)]
usb: gadget: omap_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>
Felipe Balbi [Tue, 26 Feb 2013 12:36:21 +0000 (14:36 +0200)]
usb: gadget: net2280: 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>
Felipe Balbi [Tue, 26 Feb 2013 12:36:14 +0000 (14:36 +0200)]
usb: gadget: net2272: 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>
Felipe Balbi [Tue, 26 Feb 2013 12:36:05 +0000 (14:36 +0200)]
usb: gadget: mv_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>
Felipe Balbi [Tue, 26 Feb 2013 12:35:59 +0000 (14:35 +0200)]
usb: gadget: mv_u3d_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>
Felipe Balbi [Tue, 26 Feb 2013 12:35:53 +0000 (14:35 +0200)]
usb: gadget: m66592-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>
Felipe Balbi [Tue, 26 Feb 2013 12:35:48 +0000 (14:35 +0200)]
usb: gadget: lpc32xx_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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>