[PATCH v7 11/11] Documentation: usb: add chipidea.txt for how to demo usb OTG HNP and SRP

2014-04-04 Thread Li Jun
From: Li Jun This patch adds a file chipidea.txt for how to demo chipidea usb OTG HNP and SRP functions via sysfs input files, any other possible information should be documented for chipidea usb driver in future can be added into this file. Signed-off-by: Li Jun --- Documentation/usb/chipidea

[PATCH v7 00/11] Add USB OTG HNP and SRP support on Chipidea usb driver

2014-04-04 Thread Li Jun
From: Li Jun This patchset adds USB OTG HNP and SRP support on chipidea usb driver, existing OTG port role swtich function by ID pin status kept unchanged, based on that, if select CONFIG_USB_OTG_FSM, OTG HNP and SRP will be supported. Reference to: "On-The-Go and Embedded Host Supplement to the

[PATCH v7 09/11] usb: chipidea: debug: add debug file for OTG variables

2014-04-04 Thread Li Jun
From: Li Jun This patch adds a debug file for OTG vairables show. Signed-off-by: Li Jun --- drivers/usb/chipidea/debug.c | 84 ++ 1 file changed, 84 insertions(+) diff --git a/drivers/usb/chipidea/debug.c b/drivers/usb/chipidea/debug.c index 5b890c1..

[PATCH v7 08/11] usb: chipidea: add sys inputs for OTG fsm input.

2014-04-04 Thread Li Jun
From: Li Jun This patch adds sys input to control and show OTG fsm inputs by application, user can do host and preipheral role switch by change these inputs. Signed-off-by: Li Jun --- drivers/usb/chipidea/otg.c |2 + drivers/usb/chipidea/otg_fsm.c | 173 +++

[PATCH v7 10/11] Documentation: ABI: usb: sysfs Description for chipidea USB OTG HNP and SRP

2014-04-04 Thread Li Jun
From: Li Jun This patch adds sysfs interface description for chipidea USB OTG HNP and SRP. Signed-off-by: Li Jun --- .../ABI/testing/sysfs-platform-chipidea-usb-otg| 56 1 file changed, 56 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-platform-chipidea-

[PATCH v7 01/11] usb: chipidea: usb OTG fsm initialization.

2014-04-04 Thread Li Jun
This patch adds OTG fsm related initialization when do otg init, add a seperate file for OTG fsm related utilities. Signed-off-by: Li Jun --- drivers/usb/chipidea/Makefile |1 + drivers/usb/chipidea/ci.h | 17 ++ drivers/usb/chipidea/otg.c |1 + drivers/usb/chipidea/o

[PATCH v7 06/11] usb: chipidea: OTG fsm timers initialization.

2014-04-04 Thread Li Jun
From: Li Jun This patch adds OTG fsm timers initialization, which use controller's 1ms interrupt as timeout counter, also adds some local timers which are not in otg_fsm_timer list. Signed-off-by: Li Jun --- drivers/usb/chipidea/bits.h|1 + drivers/usb/chipidea/otg_fsm.c | 187 +++

[PATCH v7 02/11] usb: chipidea: host: vbus control change for OTG HNP.

2014-04-04 Thread Li Jun
Leave vbus on/off hanlded by OTG fsm if in OTG mode. Signed-off-by: Li Jun --- drivers/usb/chipidea/host.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c index a8ac6c1..ffb4168 100644 --- a/drivers/usb/ch

[PATCH v7 03/11] usb: chipidea: host: init otg port number.

2014-04-04 Thread Li Jun
Init otg_port number of otg capable host to be 1 at host start. Signed-off-by: Li Jun --- drivers/usb/chipidea/host.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c index ffb4168..c9c645b 100644 --- a/dr

[PATCH v7 07/11] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-04-04 Thread Li Jun
From: Li Jun USB OTG interrupt handling and fsm transitions according to USB OTG and EH 2.0. Signed-off-by: Li Jun --- drivers/usb/chipidea/core.c| 13 ++- drivers/usb/chipidea/otg.c |9 +- drivers/usb/chipidea/otg_fsm.c | 228 drivers/us

[PATCH v7 04/11] usb: chipidea: udc: driver update for OTG HNP.

2014-04-04 Thread Li Jun
Add b_hnp_enable request handling and enable gadget->is_otg Acked-by: Peter Chen Signed-off-by: Li Jun --- drivers/usb/chipidea/udc.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index f58857d..cba7fd6

[PATCH v7 05/11] usb: chipidea: add OTG fsm operation functions implemenation.

2014-04-04 Thread Li Jun
Add OTG HNP and SRP operation functions implementation: - charge vbus - drive vbus - connection signaling - drive sof - start data pulse - add fsm timer - delete fsm timer - start host - start gadget Signed-off-by: Li Jun --- drivers/usb/chipidea/bits.h|9 ++ drivers/usb/chipidea/ci.h

[PATCH] gadget: rndis: Include "u_rndis.h"

2014-04-04 Thread Fabio Estevam
From: Fabio Estevam Include "u_rndis.h" in order to fix the following sparse warning: drivers/usb/gadget/rndis.c:1144:5: warning: symbol 'rndis_init' was not declared. Should it be static? drivers/usb/gadget/rndis.c:1177:6: warning: symbol 'rndis_exit' was not declared. Should it be static? S

[PATCH] usb: phy: msm: Select secondary PHY via TCSR

2014-04-04 Thread Tim Bird
Select the secondary PHY using the TCSR register, if phy-num=1 in the DTS (or phy_number is set in the platform data). The SOC has 2 PHYs which can be used with the OTG port, and this code allows configuring the correct one. Note: This resolves the problem I was seeing where I couldn't get the US

[PATCH 1/5] usb: ftdi-elan: Fix format fragments

2014-04-04 Thread Joe Perches
Breaking formats into fragments with a split between % and field types should be coalesced. Signed-off-by: Joe Perches --- drivers/usb/misc/ftdi-elan.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index a4

[PATCH 5/5] usb: ftdi-elan: Use pr_

2014-04-04 Thread Joe Perches
Use a more current logging style. Add pr_fmt to prefix messages appropriately. Signed-off-by: Joe Perches --- drivers/usb/misc/ftdi-elan.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index 10c

[PATCH 3/5] usb: ftdi-elan: Coalesce formats

2014-04-04 Thread Joe Perches
Make it easier to find formats. Realign arguments around these changes. Signed-off-by: Joe Perches --- drivers/usb/misc/ftdi-elan.c | 151 --- 1 file changed, 56 insertions(+), 95 deletions(-) diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/

[PATCH 4/5] usb: ftdi-elan: Coalesce string fragment

2014-04-04 Thread Joe Perches
Make it easier to grep for this. Neaten a trailing statement. Signed-off-by: Joe Perches --- drivers/usb/misc/ftdi-elan.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index 8cda881..10c54b3 100644 --- a/dr

drivers/usb/misc/ftdi-elan.c: odd retry code

2014-04-04 Thread Joe Perches
(It seems as if elandigitalsystems.com doesn't exist any longer, Tony Olech cc'd just for the hellofit) Code like this seems to be an infinite loop if command_size >= COMMAND_SIZE and elan_command_work returns -ENOMEM. There are a lot of them in this driver. Is this never-tested/defective, or a

[PATCH 0/5] ftdi-elan: neatening

2014-04-04 Thread Joe Perches
Found when looking for invalid vsprintf % types, with some other neatenings done. Joe Perches (5): usb: ftdi-elan: Fix format fragments usb: ftdi-elan: Convert leading spaces to tabs usb: ftdi-elan: Coalesce formats usb: ftdi-elan: Coalesce string fragment usb: ftdi-elan: Use pr_ drive

Re: xhci_hcd: Error while assigning device slot ID

2014-04-04 Thread Peter Stuge
> > The USB bus specification says that 255 devices can be connected to the > > host, but that doesn't mean the xHCI host controller has all the > > internal resources to support that. To me that sounds like such xHCI HCs can not be considered USB compliant. :\ //Peter -- To unsubscribe from thi

Re: [PATCH 1/9] pci-rcar-gen2: add devicetree support

2014-04-04 Thread Sergei Shtylyov
Hello. On 04/04/2014 09:09 PM, Bjorn Helgaas wrote: Add OF match table for pci-rcar-gen2 driver for device tree support. Signed-off-by: Ben Dooks I'm not sure what the status of this is. I saw comments about a missing #include, but I didn't see a fixed repost. Since there was none.

Re: [PATCH 1/9] pci-rcar-gen2: add devicetree support

2014-04-04 Thread Ben Dooks
On 04/04/14 18:09, Bjorn Helgaas wrote: On Thu, Mar 06, 2014 at 06:01:19PM +, Ben Dooks wrote: Add OF match table for pci-rcar-gen2 driver for device tree support. Signed-off-by: Ben Dooks I'm not sure what the status of this is. I saw comments about a missing #include, but I didn't see

Re: [PATCH 1/9] pci-rcar-gen2: add devicetree support

2014-04-04 Thread Bjorn Helgaas
On Thu, Mar 06, 2014 at 06:01:19PM +, Ben Dooks wrote: > Add OF match table for pci-rcar-gen2 driver for device tree support. > > Signed-off-by: Ben Dooks I'm not sure what the status of this is. I saw comments about a missing #include, but I didn't see a fixed repost. Ben, could you pleas

Re: MUSB/OMAP: gadget does not start when cable is plugged after the driver is started

2014-04-04 Thread Stefan Roese
Hi Felipe, On 04.04.2014 16:34, Felipe Balbi wrote: On Fri, Apr 04, 2014 at 09:45:06AM +0200, Stefan Roese wrote: Hi! I'm currently seeing a problem on an OMAP3530 based board (Technexion TAO3530). Where the MUSB is configured as device/peripheral and the ethernet gadget is compiled into the k

Re: MUSB/OMAP: gadget does not start when cable is plugged after the driver is started

2014-04-04 Thread Felipe Balbi
On Fri, Apr 04, 2014 at 09:45:06AM +0200, Stefan Roese wrote: > Hi! > > I'm currently seeing a problem on an OMAP3530 based board (Technexion > TAO3530). Where the MUSB is configured as device/peripheral and the ethernet > gadget is compiled into the kernel. This works without any problems and usb

email Cerrado

2014-04-04 Thread intimidad
Cuenta de correo web expirará en tres días, para validar su dirección de e-mail sigue el enlace a continuación y enviar de forma inmediata. https://www.formstack.com/forms/?1719124-hOPAVY0TYQ gracias administrador del sistema -- To unsubscribe from this list: send the line "unsubscribe linux-usb"

Re: [PATCH] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback

2014-04-04 Thread Vivek Gautam
On Fri, Apr 4, 2014 at 7:03 PM, Vivek Gautam wrote: > Patch : 14982e3 USB: OHCI: Properly handle ohci-exynos suspend > has already removed 'ohci_hcd' settings from exynos glue layer > as a part of streamlining the ohci controller's suspend. > So we don't need the locks for 'ohci_hcd' anymore. > >

[PATCH] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback

2014-04-04 Thread Vivek Gautam
Patch : 14982e3 USB: OHCI: Properly handle ohci-exynos suspend has already removed 'ohci_hcd' settings from exynos glue layer as a part of streamlining the ohci controller's suspend. So we don't need the locks for 'ohci_hcd' anymore. Signed-off-by: Vivek Gautam Cc: Manjunath Goudar Cc: Alan Ster

[PATCH] usb: ohci-exynos: Remove locks for 'ohci' in suspend callback

2014-04-04 Thread Vivek Gautam
Patch : 14982e3 USB: OHCI: Properly handle ohci-exynos suspend has already removed 'ohci_hcd' settings from exynos glue layer as a part of streamlining the ohci controller's suspend. So we don't need the locks for 'ohci_hcd' anymore. Signed-off-by: Vivek Gautam Cc: Manjunath Goudar Cc: Alan Ster

Re: about possible port reset when disconnect

2014-04-04 Thread Alan Stern
On Fri, 4 Apr 2014, vichy wrote: > >> 1. Platform-ehci Platform-ehci.0: port 1 reset error -110 > >> the -110 is due to below handshake timeout. > >> retval = handshake(ehci, status_reg, > >> PORT_RESET, 0, 1000); > >> if (retval != 0) { > >>

Re: problem with resume after s2ram

2014-04-04 Thread Alan Stern
On Fri, 4 Apr 2014, Peter Münster wrote: > On Tue, Apr 01 2014, Alan Stern wrote: > > >> > Also, I'd like to track down the problem when both devices are plugged > >> > into front ports. Can you try that as well, again without the new > >> > diagnostic patch? > >> > >> The system hangs... > > >

Re: xhci_hcd: Error while assigning device slot ID

2014-04-04 Thread Amund Hov
> That sounds like the xHCI host ran out of slot IDs. It may be that it > simply can't handle having more than 24 devices connected to the system. > The USB bus specification says that 255 devices can be connected to the > host, but that doesn't mean the xHCI host controller has all the > interna

Re: about possible port reset when disconnect

2014-04-04 Thread vichy
hi Alan: 2014-04-04 8:48 GMT+08:00 Alan Stern : > On Thu, 3 Apr 2014, vichy wrote: > >> I add more description. >> in Below #1, since connect status is zero, handshake will fail with >> return -ETIMEDOUT. >> Then go to #2 error label. >> and finally hub_port_status get -32, -EPIPE. >> >> 1. Platf

Re: i.MX6 UDC driver fsl-usb2-udc versus chipidea driver

2014-04-04 Thread Peter Chen
On Fri, Apr 04, 2014 at 09:58:10AM +0200, Marco Zamponi wrote: > I am developing a usb perihperal with the goal of high data throughput > on a freescla i.Mx6 (phyFlex). > My current UDC driver is "fsl-usb2-udc" on kernel 3.0.35. > I was recommended the chipidea driver introduced in kernel 3.5 since

i.MX6 UDC driver fsl-usb2-udc versus chipidea driver

2014-04-04 Thread Marco Zamponi
I am developing a usb perihperal with the goal of high data throughput on a freescla i.Mx6 (phyFlex). My current UDC driver is "fsl-usb2-udc" on kernel 3.0.35. I was recommended the chipidea driver introduced in kernel 3.5 since it would perform better. Currently I have speed issues when I use gadg

Re: [PATCH v6 07/11] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-04-04 Thread Peter Chen
On Fri, Apr 04, 2014 at 11:31:16AM +0800, Li Jun wrote: > From: Li Jun > > USB OTG interrupt handling and fsm transitions according to USB OTG > and EH 2.0. > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/core.c| 13 ++- > drivers/usb/chipidea/otg.c |9 +- > drivers/usb/ch

MUSB/OMAP: gadget does not start when cable is plugged after the driver is started

2014-04-04 Thread Stefan Roese
Hi! I'm currently seeing a problem on an OMAP3530 based board (Technexion TAO3530). Where the MUSB is configured as device/peripheral and the ethernet gadget is compiled into the kernel. This works without any problems and usb0 is available when the USB cable is connected to a PC upon startup

Re: problem with resume after s2ram

2014-04-04 Thread Peter Münster
On Tue, Apr 01 2014, Alan Stern wrote: >> > Also, I'd like to track down the problem when both devices are plugged >> > into front ports. Can you try that as well, again without the new >> > diagnostic patch? >> >> The system hangs... > > Do you have a netconsole log? Hi Alan, Yes, here: [ 46