[PATCH fix 1/3] usb/gadget: Kconfig: fix separate building of configfs-enabled functions

2013-06-13 Thread Andrzej Pietrasiewicz
USB_CONFGFS_ should appear under a tristate option in order to allow selecting more than one function without building the legacy gadgets. Now there are two problems: 1) they can't be selected at all, because they depend on USB_CONFIGFS, and the patch which adds USB_CONFIGFS has not been merge

[PATCH fix 0/3] Configfs support

2013-06-13 Thread Andrzej Pietrasiewicz
Hello Felipe, Hello Greg, I've seen that you pulled a bunch of my patches. That's nice. However, Felipe was unable to apply one of them due to some whitespace issues, so he dropped it. While dropping the said patch does not break anything, it makes the usb functions configurable through configfs

[PATCH fix 3/3] Documentation/ABI/testing: configfs-based usb gadgets

2013-06-13 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park --- Documentation/ABI/testing/configfs-usb-gadget | 81 Documentation/ABI/testing/configfs-usb-gadget-acm |8 ++ Documentation/ABI/testing/configfs-usb-gadget-ecm | 16 Documentation/ABI/te

[PATCH fix 2/3] Documentation/usb: gadget_configfs

2013-06-13 Thread Andrzej Pietrasiewicz
Add documentation for configfs-based usb gadget. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park --- Documentation/usb/gadget_configfs.txt | 384 + 1 files changed, 384 insertions(+), 0 deletions(-) create mode 100644 Documentation/usb/gadget_

[PATCH v7 9/9] usb: phy: twl4030-usb: remove *set_suspend* and *phy_init* ops

2013-06-13 Thread Kishon Vijay Abraham I
Now that twl4030-usb is adapted to the new generic PHY framework, *set_suspend* and *phy_init* ops can be removed from twl4030-usb driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/phy/phy-twl4030-usb.c | 55 - 1 file changed, 12 insertions(+), 4

[PATCH v7 1/9] drivers: phy: add generic PHY framework

2013-06-13 Thread Kishon Vijay Abraham I
The PHY framework provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without using phandle. For dt-boot, the PHY drivers should also register *PHY provider* with the framework. PHY drivers should create the PHY by

[PATCH v7 0/9] Generic PHY Framework

2013-06-13 Thread Kishon Vijay Abraham I
Added a generic PHY framework that provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without using phandle. This framework will be of use only to devices that uses external PHY (PHY functionality is not embedded w

[PATCH v7 3/9] usb: phy: twl4030: use the new generic PHY framework

2013-06-13 Thread Kishon Vijay Abraham I
Used the generic PHY framework API to create the PHY. For powering on and powering off the PHY, power_on and power_off ops are used. Once the MUSB OMAP glue is adapted to the new framework, the suspend and resume ops of usb phy library will be removed. However using the old usb phy library cannot

[PATCH v7 2/9] usb: phy: omap-usb2: use the new generic PHY framework

2013-06-13 Thread Kishon Vijay Abraham I
Used the generic PHY framework API to create the PHY. Now the power off and power on are done in omap_usb_power_off and omap_usb_power_on respectively. However using the old USB PHY library cannot be completely removed because OTG is intertwined with PHY and moving to the new framework will break

[PATCH v7 7/9] usb: musb: omap2430: use the new generic PHY framework

2013-06-13 Thread Kishon Vijay Abraham I
Use the generic PHY framework API to get the PHY. The usb_phy_set_resume and usb_phy_set_suspend is replaced with power_on/get_sync and power_off/put_sync to align with the new PHY framework. musb->xceiv can't be removed as of now because musb core uses xceiv.state and xceiv.otg. Once there is a s

[PATCH v7 5/9] ARM: OMAP: USB: Add phy binding information

2013-06-13 Thread Kishon Vijay Abraham I
In order for controllers to get PHY in case of non dt boot, the phy binding information (phy device name) should be added in the platform data of the controller. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/usb-musb.c |6 +- include/linux/usb/musb.h |3 +++ 2 f

[PATCH v7 8/9] usb: phy: omap-usb2: remove *set_suspend* callback from omap-usb2

2013-06-13 Thread Kishon Vijay Abraham I
Now that omap-usb2 is adapted to the new generic PHY framework, *set_suspend* ops can be removed from omap-usb2 driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/phy/phy-omap-usb2.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/usb/phy/phy-oma

[PATCH v7 4/9] usb: phy: twl4030: twl4030 shouldn't be subsys_initcall

2013-06-13 Thread Kishon Vijay Abraham I
Changed the inticall from subsys_initcall to module_init for twl4030-usb. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/phy/phy-twl4030-usb.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/usb/phy/phy-twl4030-usb.c b/drivers/usb/phy/phy-twl403

[PATCH v7 6/9] ARM: dts: omap: update usb_otg_hs data

2013-06-13 Thread Kishon Vijay Abraham I
Updated the usb_otg_hs dt data to include the *phy* and *phy-names* binding in order for the driver to use the new generic PHY framework. Also updated the Documentation to include the binding information. The PHY binding information can be found at Documentation/devicetree/bindings/phy/phy-bindings

Re: [GIT PULL] USB patches for v3.11 merge window

2013-06-13 Thread Roger Quadros
On 06/13/2013 01:37 AM, Greg KH wrote: > On Wed, Jun 12, 2013 at 02:31:17PM -0700, Greg KH wrote: >> On Thu, Jun 13, 2013 at 12:19:02AM +0300, Felipe Balbi wrote: >>> Hi, >>> >>> On Wed, Jun 12, 2013 at 11:56:19PM +0300, Felipe Balbi wrote: > But, I get a build error with your tree pulled in, a

[PATCH 00/10] USB: OHCI:Properly handle ohci_suspend()routine in bus glue

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci bus glue was not properly handled as it was not suspending generic part of ohci controller. Calling explicitly the ohci_suspend()routine will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right away without executing further.

[PATCH 01/10] USB: OHCI: Properly handle ohci-at91 suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-at91 glue was not properly handled as it was not suspending generic part of ohci controller. Calling explicitly the ohci_suspend() routine in ohci_hcd_at91_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return rig

[PATCH 02/10] USB: OHCI: Properly handle ohci-s3c2410 suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-s3c2410 glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_hcd_s3c2410_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return

[PATCH 07/10] USB: OHCI: Properly handle ohci-platform suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-platform glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_platform_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right

[PATCH 03/10] USB: OHCI: Properly handle ohci-da8xx suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-da8xx glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_da8xx_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right away

[PATCH 10/10] USB: OHCI: Properly handle ohci-spear suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-spear glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in spear_ohci_hcd_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return rig

[PATCH 05/10] USB: OHCI: Properly handle ohci-exynos suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-exynos glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in exynos_ohci_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right awa

[PATCH 06/10] USB: OHCI: Properly handle ohci-omap suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-omap glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_omap_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right away wi

[PATCH 04/10] USB: OHCI: Properly handle ohci-ep93xx suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-ep93xx glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_hcd_ep93xx_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return r

[PATCH 09/10] USB: OHCI: Properly handle ohci-sm501 suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-sm501 glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_sm501_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right away

[PATCH 08/10] USB: OHCI: Properly handle ohci-pxa27x suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-pxa27x glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_hcd_pxa27x_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return r

[PATCH V2 07/10] USB: OHCI: Properly handle ohci-platform suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-platform glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_platform_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right

[PATCH V2 00/10] USB: OHCI:Properly handle ohci_suspend()routine in bus glue

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci bus glue was not properly handled as it was not suspending generic part of ohci controller. Calling explicitly the ohci_suspend()routine will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right away without executing further.

[PATCH V2 08/10] USB: OHCI: Properly handle ohci-pxa27x suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-pxa27x glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_hcd_pxa27x_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return r

[PATCH V2 09/10] USB: OHCI: Properly handle ohci-sm501 suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-sm501 glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_sm501_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right away

[PATCH V2 04/10] USB: OHCI: Properly handle ohci-ep93xx suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-ep93xx glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_hcd_ep93xx_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return r

[PATCH V2 03/10] USB: OHCI: Properly handle ohci-da8xx suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-da8xx glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_da8xx_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right away

[PATCH V2 01/10] USB: OHCI: Properly handle ohci-at91 suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-at91 glue was not properly handled as it was not suspending generic part of ohci controller. Calling explicitly the ohci_suspend() routine in ohci_hcd_at91_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return rig

[PATCH V2 05/10] USB: OHCI: Properly handle ohci-exynos suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-exynos glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in exynos_ohci_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right awa

[PATCH V2 02/10] USB: OHCI: Properly handle ohci-s3c2410 suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-s3c2410 glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_hcd_s3c2410_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return

[PATCH V2 06/10] USB: OHCI: Properly handle ohci-omap suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-omap glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in ohci_omap_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return right away wi

[PATCH V2 10/10] USB: OHCI: Properly handle ohci-spear suspend

2013-06-13 Thread Manjunath Goudar
Suspend scenario in case of ohci-spear glue was not properly handled as it was not suspending generic part of ohci controller.Calling explicitly the ohci_suspend() routine in spear_ohci_hcd_drv_suspend() will ensure proper handling of suspend scenario. V2: -Incase ohci_suspend() fails, return rig

Re: [PATCH 10/10] USB: OHCI: Properly handle ohci-spear suspend

2013-06-13 Thread Viresh Kumar
On 13 June 2013 14:41, Manjunath Goudar wrote: > Suspend scenario in case of ohci-spear glue was not > properly handled as it was not suspending generic part > of ohci controller.Calling explicitly the ohci_suspend() Add space after full stop. > routine in spear_ohci_hcd_drv_suspend() will ensur

Re: DWC3: Event Interrupt Mask issue

2013-06-13 Thread Huang Rui
Hi Felipe, On Thu, Jun 13, 2013 at 02:01:04AM +0800, Felipe Balbi wrote: > Hi, > > On Fri, Jun 07, 2013 at 03:50:17PM +0800, Huang Rui wrote: > > Hi Felipe, > > > > I was reading dwc3 codes and found that during the process of > > configuring event buffer (dwc3_event_buffers_setup), it only writ

Re: [RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-06-13 Thread Tomi Valkeinen
Hi, On 28/05/13 08:18, Kishon Vijay Abraham I wrote: > Hi Tony, > > On Friday 17 May 2013 06:52 PM, Kishon Vijay Abraham I wrote: >> In order for controllers to get PHY in case of non dt boot, the phy >> binding information (phy label) should be added in the platform >> data of the controller. >

Re: [GIT PULL] USB patches for v3.11 merge window

2013-06-13 Thread Felipe Balbi
Hi, On Thu, Jun 13, 2013 at 12:05:36PM +0300, Roger Quadros wrote: > On 06/13/2013 01:37 AM, Greg KH wrote: > > On Wed, Jun 12, 2013 at 02:31:17PM -0700, Greg KH wrote: > >> On Thu, Jun 13, 2013 at 12:19:02AM +0300, Felipe Balbi wrote: > >>> Hi, > >>> > >>> On Wed, Jun 12, 2013 at 11:56:19PM +0300

Re: DWC3: Event Interrupt Mask issue

2013-06-13 Thread Felipe Balbi
Hi, On Thu, Jun 13, 2013 at 08:26:12PM +0800, Huang Rui wrote: > > > I was reading dwc3 codes and found that during the process of > > > configuring event buffer (dwc3_event_buffers_setup), it only write the > > > size of the buffer and doesn't write interrupt mask bit into GEVNTSIZ > > > register

Re: [PATCH fix 0/3] Configfs support

2013-06-13 Thread Felipe Balbi
Hi, On Thu, Jun 13, 2013 at 10:37:23AM +0200, Andrzej Pietrasiewicz wrote: > Hello Felipe, Hello Greg, > > I've seen that you pulled a bunch of my patches. That's nice. > > However, Felipe was unable to apply one of them due to some whitespace issues, > so he dropped it. > > While dropping the

Re: [PATCH 10/10] USB: OHCI: Properly handle ohci-spear suspend

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Viresh Kumar wrote: > > + bool do_wakeup = device_may_wakeup(&pdev->dev); > > + int ret; > > + > > + ret = ohci_suspend(hcd, do_wakeup); > > + if (ret == 0 && do_wakeup && HCD_WAKEUP_PENDING(hcd)) { > > maybe s/ret == 0/!ret I tend to prefer using ! f

Re: [GIT PULL] USB patches for v3.11 merge window

2013-06-13 Thread Roger Quadros
On 06/13/2013 05:17 PM, Felipe Balbi wrote: > Hi, > > On Thu, Jun 13, 2013 at 12:05:36PM +0300, Roger Quadros wrote: >> On 06/13/2013 01:37 AM, Greg KH wrote: >>> On Wed, Jun 12, 2013 at 02:31:17PM -0700, Greg KH wrote: On Thu, Jun 13, 2013 at 12:19:02AM +0300, Felipe Balbi wrote: > Hi, >

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Ming Lei wrote: > - using interrupt threaded handler(default) > 33.440 MB/sec > > - using tasklet(#undef USB_HCD_THREADED_IRQ) > 34.29 MB/sec > > - using hard interrupt handler(by removing HCD_BH in ehci-hcd.c ) > 34.260 MB/s > > > So looks usb mass

Re: [GIT PULL] USB patches for v3.11 merge window

2013-06-13 Thread Felipe Balbi
HI, On Thu, Jun 13, 2013 at 05:53:50PM +0300, Roger Quadros wrote: > On 06/13/2013 05:17 PM, Felipe Balbi wrote: > > Hi, > > > > On Thu, Jun 13, 2013 at 12:05:36PM +0300, Roger Quadros wrote: > >> On 06/13/2013 01:37 AM, Greg KH wrote: > >>> On Wed, Jun 12, 2013 at 02:31:17PM -0700, Greg KH wrote

[PATCH 09/20] usb: chipidea: udc: manage dynamic amount of tds with a linked list

2013-06-13 Thread Alexander Shishkin
From: Michael Grzeschik Instead of having a limited number of usable tds in the udc we use a linked list to support dynamic amount of needed tds for all special gadget types. This improves throughput. Signed-off-by: Michael Grzeschik Reviewed-by: Felipe Balbi Signed-off-by: Alexander Shishkin

[PATCH 05/20] usb: chipidea: ci13xxx_imx: remove reg_vbus

2013-06-13 Thread Alexander Shishkin
From: Fabio Estevam There is no need to keep a 'reg_vbus' indirection, so get rid of it. The motivation for doing this change is that in the case of error, the current code only sets the local reg_vbus to NULL instead of updating the private structure 'data->reg_vbus'. Updating only the local r

[PATCH 06/20] usb: chipidea: ci13xxx_imx: check if 'data->phy_np' is not NULL

2013-06-13 Thread Alexander Shishkin
From: Fabio Estevam Similarly as it is done in ci13xxx_imx_remove(), only calls of_node_put if data->phy_np is not NULL. Signed-off-by: Fabio Estevam Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/ci13xxx_imx.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 01/20] usb: chipidea: ci13xxx_imx: let device core handle pinctrl

2013-06-13 Thread Alexander Shishkin
From: Fabio Estevam Since commit ab78029 (drivers/pinctrl: grab default handles from device core), we can rely on device core for handling pinctrl. So remove devm_pinctrl_get_select_default() from the driver. Cc: Signed-off-by: Fabio Estevam Tested-by: Shawn Guo Signed-off-by: Alexander Shis

[PATCH 03/20] usb: chipidea: udc: configure iso endpoints

2013-06-13 Thread Alexander Shishkin
From: Michael Grzeschik This patch adds iso endpoint support to the device controller. It makes use of the multiplication bits in the maxpacket field of the endpoint and calculates the multiplier bits for each transfer description on every request. Signed-off-by: Michael Grzeschik Reviewed-by:

[PATCH 13/20] usb: chipidea: introduce dual role mode pdata flags

2013-06-13 Thread Alexander Shishkin
From: Sascha Hauer Even if a chipidea core is otg capable the board may not be. This allows to explicitly set the core to host/peripheral mode. Without these flags the driver falls back to the old behaviour. Signed-off-by: Sascha Hauer Signed-off-by: Alexander Shishkin --- .../devicetree/bind

[PATCH 11/20] usb: add devicetree helpers for determining dr_mode and phy_type

2013-06-13 Thread Alexander Shishkin
From: Michael Grzeschik This adds two little devicetree helper functions for determining the dr_mode (host, peripheral, otg) and phy_type (utmi, ulpi,...) from the devicetree. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde Signed-off-by: Sascha Hauer Acked-by: Felipe Balbi

[PATCH 04/20] usb: chipidea: ci13xxx_imx: fix error path

2013-06-13 Thread Alexander Shishkin
From: Fabio Estevam If usbmisc_ops->post() fails it should point the error path to release all previously acquired resources, so adjust it to call ci13xxx_remove_device(). While at it, remove the unnecessary 'plat_ci' indirection, as we can directly use the private structure. Signed-off-by: Fab

[PATCH 00/20] usb: chipidea: updates for v3.11

2013-06-13 Thread Alexander Shishkin
Hi, Here's a set of chipidea updates for v3.11. These are mostly fixes and cleanups, but also include isoch endpoint support and multi-td transfers by Michael. On top there are two mass rename patches that I've been meaning to push for a while, particularly the one that gets rid of "ci13xxx". Ev

[PATCH 02/20] usb: chipidea: usbmisc_imx: Staticize usbmisc_imx_drv_init/exit

2013-06-13 Thread Alexander Shishkin
From: Fabio Estevam Fix the following sparse warnings: drivers/usb/chipidea/usbmisc_imx.c:246:5: warning: symbol 'usbmisc_imx_drv_init' was not declared. Should it be static? drivers/usb/chipidea/usbmisc_imx.c:252:6: warning: symbol 'usbmisc_imx_drv_exit' was not declared. Should it be static?

[PATCH 10/20] usb: chipidea: udc: add multiple td support to hardware_{en,de}queue

2013-06-13 Thread Alexander Shishkin
From: Michael Grzeschik This patch removes the restriction of having a limited amount of only four active tds on one endpoint. We use the linked list implementation to manage all tds which get added and removed by hardware_{en,de}queue. The removal of this restriction adds the driver to run into

[PATCH 08/20] usb: chipidea: improve kconfig

2013-06-13 Thread Alexander Shishkin
From: Peter Chen Randy Dunlap reported this problem on i386: > drivers/built-in.o: In function `ci_hdrc_host_init': > (.text+0x2ce75c): undefined reference to `ehci_init_driver' > > When USB_EHCI_HCD=m and USB_CHIPIDEA=y. In fact, this problem is existed on all platforms which are using chipid

[PATCH 14/20] usb: chipidea: ci13xxx-imx: move static pdata into probe function

2013-06-13 Thread Alexander Shishkin
From: Michael Grzeschik The pdata structure gets copied anyway inside ci13xxx_add_device by platform_device_add. We don't need to have it static. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde Signed-off-by: Sascha Hauer Reviewed-by: Peter Chen Signed-off-by: Alexander Shi

[PATCH 17/20] usb: chipidea: remove superfluous pci_set_drvdata(pci, NULL)

2013-06-13 Thread Alexander Shishkin
From: Andy Shevchenko As drvdata is cleared to NULL at probe failure or at removal by the driver core, we don't have to call pci_set_drvdata(pci, NULL) any longer in each driver. Signed-off-by: Andy Shevchenko Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/ci13xxx_pci.c |1 -

[PATCH 12/20] usb: chipidea: add PTW, PTS and STS handling

2013-06-13 Thread Alexander Shishkin
From: Michael Grzeschik This patch makes it possible to configure the PTW, PTS and STS bits inside the portsc register for host and device mode before the driver starts and the phy can be addressed as hardware implementation is designed. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Klei

[PATCH 15/20] usb: chipidea: usbmisc: use module_platform_driver

2013-06-13 Thread Alexander Shishkin
From: Philipp Zabel This patch converts the driver to use the module_platform_driver macro which makes the code smaller and a bit simpler. Signed-off-by: Philipp Zabel Signed-off-by: Michael Grzeschik Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/usbmisc_imx.c | 12 +--

[PATCH 18/20] usb: chipidea: move to pcim_* functions

2013-06-13 Thread Alexander Shishkin
From: Andy Shevchenko This patch makes error path cleaner and probe function tidier. Signed-off-by: Andy Shevchenko Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/ci13xxx_pci.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/usb/chip

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Ming Lei wrote: > > For reasonably sophisticated host controllers like EHCI, the delay in > > responding to an interrupt doesn't matter much. But for simpler host > > EHCI might still benefit from the change: suppose uvc video is playing on > one EHCI bus, and mass storage's

[PATCH 16/20] usb: chipidea: i.MX: use devm_usb_get_phy_by_phandle to get phy

2013-06-13 Thread Alexander Shishkin
From: Sascha Hauer This patch converts the driver to use devm_usb_get_phy_by_phandle which makes the code smaller and a bit simpler. Signed-off-by: Sascha Hauer Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/ci13xxx_imx.c | 32 1 file changed, 12

[PATCH 07/20] usb: chipidea: ci13xxx_imx: remove 'phy_np'

2013-06-13 Thread Alexander Shishkin
From: Fabio Estevam There is no need to keep a local 'phy_np' as we can directly use the private structure in data->phy_np. Signed-off-by: Fabio Estevam Signed-off-by: Alexander Shishkin --- drivers/usb/chipidea/ci13xxx_imx.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-

[PATCH 19/20] usb: chipidea: get rid of camelcase names

2013-06-13 Thread Alexander Shishkin
Since someone has added camelcase detection to checkpatch.pl, chipidea udc patches have been very noisy. To make everybody's life easier, this patch changes camelcase names into something more appropriate to the coding style. No functional changes. Signed-off-by: Alexander Shishkin --- drivers/u

Re: [PATCh V10 04/12] usb: ehci: ehci-mv: use PHY driver for ehci

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Chao Xie wrote: > >> These operations sound generic enough to be done at HCD layer, no? So no > >> need to > >> replicate the same stuff in ohci, ehci, xhci, etc. > > > > The HCD layer handles suspend and resume only for PCI host controllers. > > Not for other types. > > > >

RE: [PATCH 10/20] usb: chipidea: udc: add multiple td support to hardware_{en,de}queue

2013-06-13 Thread Alexander Shishkin
Kerry Calvert writes: [adding linux-usb back to the loop] > Dude, what is with the spamming of this list? Cease and desist please These things are called patches. This is how they are distributed in linux kernel development process. Regards, -- Alex -- To unsubscribe from this list: send the

Re: [PATCH fix 0/3] Configfs support

2013-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2013 at 05:25:48PM +0300, Felipe Balbi wrote: > Hi, > > On Thu, Jun 13, 2013 at 10:37:23AM +0200, Andrzej Pietrasiewicz wrote: > > Hello Felipe, Hello Greg, > > > > I've seen that you pulled a bunch of my patches. That's nice. > > > > However, Felipe was unable to apply one of th

Re: [PATCH 14/20] usb: chipidea: ci13xxx-imx: move static pdata into probe function

2013-06-13 Thread Sergei Shtylyov
Hello. On 06/13/2013 06:59 PM, Alexander Shishkin wrote: From: Michael Grzeschik The pdata structure gets copied anyway inside ci13xxx_add_device by platform_device_add. We don't need to have it static. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde Signed-off-by: Sa

Re: [PATCH 14/20] usb: chipidea: ci13xxx-imx: move static pdata into probe function

2013-06-13 Thread Alexander Shishkin
Sergei Shtylyov writes: > Hello. > > On 06/13/2013 06:59 PM, Alexander Shishkin wrote: > >> From: Michael Grzeschik > >> The pdata structure gets copied anyway inside ci13xxx_add_device >> by platform_device_add. We don't need to have it static. > >> Signed-off-by: Michael Grzeschik >> Signed-o

Re: [PATCH] MIPS: Kconfig: Select USB_EHCI_HCD if USB_SUPPORt is enabled

2013-06-13 Thread David Daney
On 06/13/2013 08:42 AM, Markos Chandras wrote: Commit 94d83649e1c2f25c87dc4ead9c2ab073305 "USB: remove USB_EHCI_BIG_ENDIAN_{DESC,MMIO} depends on architecture symbol" caused the following regression in cavium_octeon_defconfig: warning: (MIPS_SEAD3 && PMC_MSP && CPU_CAVIUM_OCTEON) selects USB_EH

[PATCH 0/1] USB: wusbcore: add sysfs attribute for DNTS count and interval

2013-06-13 Thread Thomas Pugliese
This patch adds a sysfs attribute for the wireless USB host controller device notification transmit slot(DNTS) count and interval. It also changes the defaults from 16 slots in every MMC to a more reasonable 4 slots every 2ms. Signed-off-by: Thomas Pugliese diff --git a/drivers/usb/wusbcore/

[PATCH V3 REPOST 7/7] USB: EHCI: tegra: make use of ehci->priv

2013-06-13 Thread Stephen Warren
From: Stephen Warren Rather than allocating struct tegra_ehci_hcd separately, use struct ehci_hcd's priv field instead. Signed-off-by: Stephen Warren Acked-by: Alan Stern --- v3: New patch. --- drivers/usb/host/ehci-tegra.c | 70 +-- 1 file changed, 35

[PATCH V3 REPOST 5/7] USB: EHCI: tegra: fix circular module dependencies

2013-06-13 Thread Stephen Warren
From: Stephen Warren The Tegra EHCI driver directly calls various functions in the Tegra USB PHY driver. The reverse is also true; the PHY driver calls into the EHCI driver. This is problematic when the two are built as modules. The calls from the PHY to EHCI driver were originally added in comm

[PATCH V3 REPOST 1/7] usb: phy: export ulpi_viewport_access_ops

2013-06-13 Thread Stephen Warren
From: Manjunath Goudar In order to build a ULPI PHY driver as a module, this symbol needs to be exported. Signed-off-by: Manjunath Goudar [swarren, reworked Manjunath's patches to split them more logically] Signed-off-by: Stephen Warren Acked-by: Arnd Bergmann Acked-by: Felipe Balbi --- v3:

[PATCH V3 REPOST 0/7] USB: tegra: support building as a module

2013-06-13 Thread Stephen Warren
From: Stephen Warren I'm reposting this because I originally thought Felipe would apply it to his PHY tree, since it's based on other work there. Now that tree has been merged into Greg's main USB tree, I believe this series can be applied there instead. Hence, resending so it shows up in Greg's

[PATCH 1/1] USB: wusbcore: add sysfs attribute for retry count

2013-06-13 Thread Thomas Pugliese
This patch adds a sysfs attribute for the wireless host controller transaction retry count. It also changes the default value from 15 retries to infinite retries because the driver currently does not handle retry errors gracefully. Signed-off-by: Thomas Pugliese diff --git a/drivers/usb/wusb

[PATCH V3 REPOST 2/7] usb: phy: add MODULE_LICENSE to phy-tegra-usb.c

2013-06-13 Thread Stephen Warren
From: Stephen Warren When this file is built as a module, it needs a MODULE_LICENSE in order to access many exported symbols. Signed-off-by: Stephen Warren Acked-by: Arnd Bergmann Acked-by: Felipe Balbi --- v3: No change. v2: No change. --- drivers/usb/phy/phy-tegra-usb.c | 4 1 file ch

[PATCH V3 REPOST 6/7] USB: EHCI: make ehci-tegra a separate driver

2013-06-13 Thread Stephen Warren
From: Manjunath Goudar Separate the Tegra on-chip host controller driver from ehci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM. Signed-off-by: Manjunath Goudar [swarren, reworked Manjunath's patches to split them

[PATCH V3 REPOST 3/7] USB: EHCI: export ehci_handshake for ehci-hcd sub-drivers

2013-06-13 Thread Stephen Warren
From: Manjunath Goudar In order to split ehci-hcd.c into separate modules, handshake() must be exported. Rename the symbol to add an ehci_ prefix, to avoid any naming clashes. Signed-off-by: Manjunath Goudar [swarren, split Manjunath's patches more logically, limit this change to export just ha

[PATCH V3 REPOST 4/7] USB: EHCI: tegra: remove all power management

2013-06-13 Thread Stephen Warren
From: Stephen Warren The PM routines in ehci-tegra.c use APIs such as ehci_reset(), ehci_halt(), and ehci_tdi_reset() that would need to be exported to convert ehci-tegra.c into a separate module from ehci-hcd.c. However, we'd prefer not to export them. Instead, simply remove all power managemen

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2013 at 10:54:13AM -0400, Alan Stern wrote: > On Thu, 13 Jun 2013, Ming Lei wrote: > > > - using interrupt threaded handler(default) > > 33.440 MB/sec > > > > - using tasklet(#undef USB_HCD_THREADED_IRQ) > > 34.29 MB/sec > > > > - using hard interrupt handler(by r

Re: [PATCH V2 01/10] USB: OHCI: Properly handle ohci-at91 suspend

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Manjunath Goudar wrote: > Suspend scenario in case of ohci-at91 glue was not properly > handled as it was not suspending generic part of ohci controller. > Calling explicitly the ohci_suspend() routine in ohci_hcd_at91_drv_suspend() > will ensure proper handling of suspend sce

Re: [PATCH V2 02/10] USB: OHCI: Properly handle ohci-s3c2410 suspend

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Manjunath Goudar wrote: > Suspend scenario in case of ohci-s3c2410 glue was not > properly handled as it was not suspending generic part > of ohci controller.Calling explicitly the ohci_suspend() > routine in ohci_hcd_s3c2410_drv_suspend() will ensure > proper handling of susp

Re: [PATCH V2 03/10] USB: OHCI: Properly handle ohci-da8xx suspend

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Manjunath Goudar wrote: > Suspend scenario in case of ohci-da8xx glue was not > properly handled as it was not suspending generic part > of ohci controller.Calling explicitly the ohci_suspend() > routine in ohci_da8xx_suspend() will ensure proper > handling of suspend scenario

Re: [PATCH V2 05/10] USB: OHCI: Properly handle ohci-exynos suspend

2013-06-13 Thread Tomasz Figa
Hi Manjunath, On Thursday 13 of June 2013 14:46:24 Manjunath Goudar wrote: > Suspend scenario in case of ohci-exynos glue was not > properly handled as it was not suspending generic part > of ohci controller.Calling explicitly the ohci_suspend() > routine in exynos_ohci_suspend() will ensure prope

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Greg Kroah-Hartman wrote: > On Thu, Jun 13, 2013 at 10:54:13AM -0400, Alan Stern wrote: > > On Thu, 13 Jun 2013, Ming Lei wrote: > > > > > - using interrupt threaded handler(default) > > > 33.440 MB/sec > > > > > > - using tasklet(#undef USB_HCD_THREADED_IRQ) > > >

Re: [PATCH V2 05/10] USB: OHCI: Properly handle ohci-exynos suspend

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Tomasz Figa wrote: > > + rc = ohci_suspend(hcd, do_wakeup); > > + if (rc == 0 && do_wakeup && HCD_WAKEUP_PENDING(hcd)) { > > + ohci_resume(hcd, false); > > + rc = -EBUSY; > > + } > > I'm not into USB host subsystem, so I might just ask a stupid quest

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Steven Rostedt
On Thu, 2013-06-13 at 15:41 -0400, Alan Stern wrote: > The test results above show a 2.4% degradation for threaded interrupts > as compared to tasklets. That's in addition to the bottlenecks caused > by the device; no doubt it would be worse for a faster device. This > result calls into quest

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Steven Rostedt wrote: > On Thu, 2013-06-13 at 15:41 -0400, Alan Stern wrote: > > > The test results above show a 2.4% degradation for threaded interrupts > > as compared to tasklets. That's in addition to the bottlenecks caused > > by the device; no doubt it would be worse

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Steven Rostedt
On Thu, 2013-06-13 at 17:09 -0400, Alan Stern wrote: > On Thu, 13 Jun 2013, Steven Rostedt wrote: > > > On Thu, 2013-06-13 at 15:41 -0400, Alan Stern wrote: > > > > > The test results above show a 2.4% degradation for threaded interrupts > > > as compared to tasklets. That's in addition to the

Re: [PATCH 2/3] USB: OMAP: add omap-otg

2013-06-13 Thread Aaro Koskinen
Hi, On Wed, Jun 12, 2013 at 06:13:26PM +0300, Felipe Balbi wrote: > On Mon, Jun 10, 2013 at 01:40:05AM +0300, Aaro Koskinen wrote: > > +void omap_otg_set_mode(enum omap_otg_mode mode) > > +{ > > + if (!otg_dev) { > > + WARN(1, "%s: controller not present\n", __func__); > > +

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Alan Stern
On Thu, 13 Jun 2013, Steven Rostedt wrote: > I only took a quick look at the second patch. I'm now looking at both > patches applied to the code. I didn't realize this was called from the > top half. > > Usually the top half for threaded interrupts is used just to quite the > interrupt line. Eith

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2013 at 03:41:17PM -0400, Alan Stern wrote: > On Thu, 13 Jun 2013, Greg Kroah-Hartman wrote: > > > On Thu, Jun 13, 2013 at 10:54:13AM -0400, Alan Stern wrote: > > > On Thu, 13 Jun 2013, Ming Lei wrote: > > > > > > > - using interrupt threaded handler(default) > > > > 33.44

Re: [RFC PATCH 0/4] USB: HCD/EHCI: giveback of URB in tasklet context

2013-06-13 Thread Ming Lei
On Fri, Jun 14, 2013 at 5:09 AM, Alan Stern wrote: > On Thu, 13 Jun 2013, Steven Rostedt wrote: > >> On Thu, 2013-06-13 at 15:41 -0400, Alan Stern wrote: >> >> > The test results above show a 2.4% degradation for threaded interrupts >> > as compared to tasklets. That's in addition to the bottlene

Re: [PATCH 2/3] USB: OMAP: add omap-otg

2013-06-13 Thread Felipe Balbi
Hi, On Fri, Jun 14, 2013 at 01:37:11AM +0300, Aaro Koskinen wrote: > Hi, > > On Wed, Jun 12, 2013 at 06:13:26PM +0300, Felipe Balbi wrote: > > On Mon, Jun 10, 2013 at 01:40:05AM +0300, Aaro Koskinen wrote: > > > +void omap_otg_set_mode(enum omap_otg_mode mode) > > > +{ > > > + if (!otg_dev) { > >

Re: [PATCh V10 04/12] usb: ehci: ehci-mv: use PHY driver for ehci

2013-06-13 Thread Chao Xie
On Thu, Jun 13, 2013 at 11:08 PM, Alan Stern wrote: > On Thu, 13 Jun 2013, Chao Xie wrote: > >> >> These operations sound generic enough to be done at HCD layer, no? So no >> >> need to >> >> replicate the same stuff in ohci, ehci, xhci, etc. >> > >> > The HCD layer handles suspend and resume onl

  1   2   >