Re: Urb completion handler returns -32

2014-09-29 Thread Naveen Kumar Parna
Hi Alan, > The device replied with a STALL. > The device runs at low speed or full speed and is connected through a USB-2 > hub Yes, my device is full speed (12Mbps) device and connected to 2.0 root hub. So how to avoid getting the STALL? I attached the usbmon log and Ellisys USB analyser lo

Re: Poor performance with USB 1.1 drive connected to USB 3.0 port

2014-09-29 Thread Lu, Baolu
On 9/30/2014 5:03 AM, Mark Knibbs wrote: Great. I hope someone else is motivated to reproduce the issue. It will take a long time for me to bisect due to my slow computer. Hi Mark, I tried to reproduce this issue. I connected a USB key under a full-speed hub. sg_rbuf returns error which I a

Re: [PATCH v4] ARM: shmobile: r8a7790: link PCI USB devices to USB PHY

2014-09-29 Thread Simon Horman
On Mon, Sep 29, 2014 at 10:21:59PM +0400, Sergei Shtylyov wrote: > Describe the PCI USB devices that are behind the PCI bridges, adding necessary > links to the USB PHY device. > > Based on the original work by Ben Dooks . > > Signed-off-by: Sergei Shtylyov Thanks, I have queued this up. > >

Re: [PATCH v4] ARM: shmobile: r8a7791: link PCI USB devices to USB PHY

2014-09-29 Thread Simon Horman
On Mon, Sep 29, 2014 at 10:23:11PM +0400, Sergei Shtylyov wrote: > Describe the PCI USB devices that are behind the PCI bridges, adding necessary > links to the USB PHY device. > > Signed-off-by: Sergei Shtylyov Thanks, I have queued this up. > > --- > This patch is against 'renesas-devel-2014

Re: [PATCH v4 0/3] Add USB PHY device tree support for R8A7791/Koelsch/Henninger board

2014-09-29 Thread Simon Horman
On Sat, Sep 27, 2014 at 01:05:41AM +0400, Sergei Shtylyov wrote: > Hello. > >Here's the set of 3 patches against Simon Horman's 'renesas.git' repo, > 'renesas-devel-20140924-v3.17-rc6' tag. Here we add the USB PHY device tree > support on the R8A7791/Koelsch/Henninger boards. The patchset requ

Re: [PATCH v4 0/2] Add USB PHY device tree support for R8A7790/Lager board

2014-09-29 Thread Simon Horman
On Fri, Sep 26, 2014 at 01:58:01PM -0700, Sergei Shtylyov wrote: > Hello. > >Here's the set of 2 patches against Simon Horman's 'renesas.git' repo, > 'renesas-devel-20140924-v3.17-rc6' tag. Here we add the USB PHY device tree > support on the R8A7790/Lager reference board. The patchset require

Re: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

2014-09-29 Thread Felipe Balbi
Hi, On Tue, Sep 30, 2014 at 11:12:55AM +0800, Huang Rui wrote: > > > > > > > > On Thu, Sep 25, 2014 at 03:21:46PM +0800, Huang Rui wrote: > > > > > > > > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > > > > > > > > > index b0f4d52..6138c5d 100644 > > > > > > > > > --- a/drivers

Re: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

2014-09-29 Thread Huang Rui
On Mon, Sep 29, 2014 at 09:15:13AM -0500, Felipe Balbi wrote: > Hi, > > On Mon, Sep 29, 2014 at 05:38:32PM +0800, Huang Rui wrote: > > > > > > > On Thu, Sep 25, 2014 at 03:21:46PM +0800, Huang Rui wrote: > > > > > > > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > > > > > > > >

Re: [PATCH v6 07/12] usb: chipidea: add a usb2 driver for ci13xxx

2014-09-29 Thread Peter Chen
On Tue, Sep 23, 2014 at 12:28:03PM +0200, Antoine Tenart wrote: > Add a USB2 ChipIdea driver for ci13xxx, with optional PHY, clock > and DMA mask, to support USB2 ChipIdea controllers that don't need > specific functions. > > Tested on the Marvell Berlin SoCs USB controllers. > > Signed-off-by: A

Re: problems with usb stick after suspend and wake up

2014-09-29 Thread Norbert Preining
Hi Alan, On Mon, 29 Sep 2014, Alan Stern wrote: > There were several resets, and the write was retried after each reset. > And each time the write failed, and the stick refused to answer when > asked the reason for the failure. > > There's no obvious cause for this problem. It really looks li

Re: Poor performance with USB 1.1 drive connected to USB 3.0 port

2014-09-29 Thread Mark Knibbs
On Mon, 29 Sep 2014 09:28:37 -0400 (EDT) Alan Stern wrote: > On Sun, 28 Sep 2014, Mark Knibbs wrote: > > > > There's no telling the reason for this difference. It's got to be a > > > hardware issue, though, not a software problem. Maybe your xHCI > > > controller just isn't optimized for carry

Re: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

2014-09-29 Thread Felipe Balbi
Hi, On Mon, Sep 29, 2014 at 05:59:42PM +, Paul Zimmerman wrote: > > diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c > > index 68497b3..112352e 100644 > > --- a/drivers/usb/dwc3/gadget.c > > +++ b/drivers/usb/dwc3/gadget.c > > @@ -1577,6 +1577,13 @@ static int dwc3_gadget_sta

[PATCH v4] ARM: shmobile: r8a7791: link PCI USB devices to USB PHY

2014-09-29 Thread Sergei Shtylyov
Describe the PCI USB devices that are behind the PCI bridges, adding necessary links to the USB PHY device. Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-20140924-v3.17-rc6' tag of Simon Horman's 'renesas.git' repo plus R8A7791/Koelsch/Henninger USB PHY support patches

[PATCH v4] ARM: shmobile: r8a7790: link PCI USB devices to USB PHY

2014-09-29 Thread Sergei Shtylyov
Describe the PCI USB devices that are behind the PCI bridges, adding necessary links to the USB PHY device. Based on the original work by Ben Dooks . Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-20140924-v3.17-rc6' tag of Simon Horman's 'renesas.git' repo plus R8A7790

RE: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

2014-09-29 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Friday, September 26, 2014 9:31 PM > > On Sat, Sep 27, 2014 at 01:05:46AM +, Paul Zimmerman wrote: > > > > Well, it's called LPM Errata because the feature was added to the USB > > spec as an erratum. It's not an erratum to our controller. But

Re: [PATCH v3 2/2] usb: renesas_usbhs: Add device tree support for R-Car H2 and M2

2014-09-29 Thread Sergei Shtylyov
Hello. On 09/03/2014 09:25 AM, Yoshihiro Shimoda wrote: This driver supports other SoCs, but they need boards/Soc depend code. So, this patch adds device tree support for R-Car H2 and M2 initially. Signed-off-by: Yoshihiro Shimoda Acked-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs

Re: [PATCH] usb: gadget: f_rndis: fix usb_interface_descriptor for rndis

2014-09-29 Thread Lars Melin
On 2014-09-29 19:11, Heiko Schocher wrote: Hello Lars, sorry for my late answer ... Am 24.09.2014 16:22, schrieb Lars Melin: On 2014-09-24 20:12, Heiko Schocher wrote: Hello Lars, Am 24.09.2014 14:25, schrieb Lars Melin: On 2014-09-24 13:48, Heiko Schocher wrote: use the values for RNDIS o

Re: [PATCH] usb: phy: msm: Fix Sparse warning

2014-09-29 Thread Greg Kroah-Hartman
On Mon, Sep 29, 2014 at 06:17:40PM +0530, Pramod Gurav wrote: > This change fixes below sparse warning: > drivers/usb/phy/phy-msm-usb.c:1397:30: > warning: symbol 'msm_otg_mode_fops' was not declared.Should it be static? > > Cc: Srinivas Kandagatla > Cc: Felipe Balbi > Cc: Greg Kroah-Hartman >

Re: [PATCH] usb: gadget: uvc: fix up uvcg_v4l2_get_unmapped_area typo

2014-09-29 Thread Greg KH
On Mon, Sep 29, 2014 at 03:34:11PM +0300, Laurent Pinchart wrote: > Hi Arnd, > > Thank you for the patch. > > On Monday 29 September 2014 14:30:20 Arnd Bergmann wrote: > > Patch "usb: gadget: uvc: rename functions to avoid conflicts with host uvc" > > renamed a lot of symbols but missed one refer

Re: [PATCH v6 07/12] usb: chipidea: add a usb2 driver for ci13xxx

2014-09-29 Thread Antoine Tenart
Peter, Arnd, Felipe, On Tue, Sep 23, 2014 at 12:28:03PM +0200, Antoine Tenart wrote: > Add a USB2 ChipIdea driver for ci13xxx, with optional PHY, clock > and DMA mask, to support USB2 ChipIdea controllers that don't need > specific functions. Did we agree on the modifications needed to get this a

Re: [PATCH v6 07/12] usb: chipidea: add a usb2 driver for ci13xxx

2014-09-29 Thread Antoine Tenart
On Wed, Sep 24, 2014 at 04:58:14PM -0700, Sören Brinkmann wrote: > On Tue, 2014-09-23 at 12:28PM +0200, Antoine Tenart wrote: > > Add a USB2 ChipIdea driver for ci13xxx, with optional PHY, clock > > and DMA mask, to support USB2 ChipIdea controllers that don't need > > specific functions. > > > >

Re: problems with usb stick after suspend and wake up

2014-09-29 Thread Alan Stern
On Mon, 29 Sep 2014, Ivan Baldo wrote: > El 29/09/14 11:15, Alan Stern escribi�: > > The first error occurred the first time the computer tried to write > > data to the stick following the resume. Oddly enough, an earlier write > > before the suspend worked correctly. But the real problem occurr

Re: problems with usb stick after suspend and wake up

2014-09-29 Thread Ivan Baldo
El 29/09/14 11:15, Alan Stern escribió: The first error occurred the first time the computer tried to write data to the stick following the resume. Oddly enough, an earlier write before the suspend worked correctly. But the real problem occurred when the computer asked the stick to provide the

Re: [RFC PATCH 4/4] usb: dwc3: introduce dual role switch function with debugfs

2014-09-29 Thread Felipe Balbi
On Mon, Sep 29, 2014 at 09:35:07AM +0800, Huang Rui wrote: > On Fri, Sep 26, 2014 at 09:35:55AM -0500, Felipe Balbi wrote: > > Hi, > > > > On Fri, Sep 26, 2014 at 05:22:09PM +0800, Huang Rui wrote: > > > > What you need here is something to talk to usbcore and udc-core and > > > > orchestrate the

Re: problems with usb stick after suspend and wake up

2014-09-29 Thread Alan Stern
On Mon, 29 Sep 2014, Norbert Preining wrote: > Hi Alan, > > sorry for the journalctl output. I have now done the following:L > > * boot into 3.17-rc7 > * mount the usb stick (recovery completed) > * unmount, mount, unmount - just to be sure all is fine > * started usbmon capturing on bus 3 > * m

Re: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

2014-09-29 Thread Felipe Balbi
Hi, On Mon, Sep 29, 2014 at 05:38:32PM +0800, Huang Rui wrote: > > > > > > On Thu, Sep 25, 2014 at 03:21:46PM +0800, Huang Rui wrote: > > > > > > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > > > > > > > index b0f4d52..6138c5d 100644 > > > > > > > --- a/drivers/usb/dwc3/core.c

Re: [PATCH v6 2/4] usb: gadget: Refactor request completion

2014-09-29 Thread Felipe Balbi
Hi, On Mon, Sep 29, 2014 at 10:50:02AM +0200, Robert Baldyga wrote: > > diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c > > b/drivers/usb/gadget/udc/fsl_qe_udc.c > > index 7324308..dd18ea3 100644 > > --- a/drivers/usb/gadget/udc/fsl_qe_udc.c > > +++ b/drivers/usb/gadget/udc/fsl_qe_udc.c > > @@ -

Re: [GIT PULL] USB changes for v3.18 merge window

2014-09-29 Thread Felipe Balbi
On Mon, Sep 29, 2014 at 03:35:22PM +0300, Laurent Pinchart wrote: > Hi Geert, > > On Monday 29 September 2014 11:31:30 Geert Uytterhoeven wrote: > > On Wed, Sep 17, 2014 at 7:56 PM, Felipe Balbi wrote: > > > Andrzej Pietrasiewicz (23): > > > usb: gadget: uvc: rename functions to avoid confl

Re: [PATCH] USB: host: st: fix ehci/ohci driver selection

2014-09-29 Thread Alan Stern
On Mon, 29 Sep 2014, Arnd Bergmann wrote: > The newly added sti ehci and ohci drivers come with a single > Kconfig entry that does not depend on either of the base drivers, > which leads to a link error when they are disabled: > > drivers/built-in.o: In function `ohci_platform_init': > :(.init.te

Re: Urb completion handler returns -32

2014-09-29 Thread Alan Stern
On Mon, 29 Sep 2014, Naveen Kumar Parna wrote: > Hi All, > > I want to know the reason for getting INT urb completion status as -EPIPE ? The most common reasons are: The device replied with a STALL. The device runs at low speed or full speed and is connected through a U

Re: Poor performance with USB 1.1 drive connected to USB 3.0 port

2014-09-29 Thread Alan Stern
On Sun, 28 Sep 2014, Mark Knibbs wrote: > > There's no telling the reason for this difference. It's got to be a > > hardware issue, though, not a software problem. Maybe your xHCI > > controller just isn't optimized for carrying out full-speed transfers. > > That's a possibility, but the improv

[PATCH] USB: host: st: fix ehci/ohci driver selection

2014-09-29 Thread Arnd Bergmann
The newly added sti ehci and ohci drivers come with a single Kconfig entry that does not depend on either of the base drivers, which leads to a link error when they are disabled: drivers/built-in.o: In function `ohci_platform_init': :(.init.text+0x14788): undefined reference to `ohci_init_driver'

[PATCH] usb: phy: msm: Fix Sparse warning

2014-09-29 Thread Pramod Gurav
This change fixes below sparse warning: drivers/usb/phy/phy-msm-usb.c:1397:30: warning: symbol 'msm_otg_mode_fops' was not declared.Should it be static? Cc: Srinivas Kandagatla Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/usb/ph

Re: Urb completion handler returns -32

2014-09-29 Thread Naveen Kumar Parna
Hi All, Sorry I forgot to add this small detail: I am having a USB bluetooth dongle and it support Control \ Interrupt \ Bulk \ Isochronous Transfers. I am having a device driver for this, In driver probe function I am submitting an URB to INT endpoint. And in the completion handler again re-q

Re: [GIT PULL] USB changes for v3.18 merge window

2014-09-29 Thread Laurent Pinchart
Hi Geert, On Monday 29 September 2014 11:31:30 Geert Uytterhoeven wrote: > On Wed, Sep 17, 2014 at 7:56 PM, Felipe Balbi wrote: > > Andrzej Pietrasiewicz (23): > > usb: gadget: uvc: rename functions to avoid conflicts with host uvc > > It seems not everything got renamed: > > drivers/usb/

Re: [PATCH] usb: gadget: uvc: fix up uvcg_v4l2_get_unmapped_area typo

2014-09-29 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Monday 29 September 2014 14:30:20 Arnd Bergmann wrote: > Patch "usb: gadget: uvc: rename functions to avoid conflicts with host uvc" > renamed a lot of symbols but missed one references that was inside of > an #ifdef: > > drivers/usb/gadget/function/uvc_v4l2.

[PATCH] usb: gadget: uvc: fix up uvcg_v4l2_get_unmapped_area typo

2014-09-29 Thread Arnd Bergmann
Patch "usb: gadget: uvc: rename functions to avoid conflicts with host uvc" renamed a lot of symbols but missed one references that was inside of an #ifdef: drivers/usb/gadget/function/uvc_v4l2.c:363:23: error: 'uvcg_v4l2_get_unmapped_area' undeclared here (not in a function) .get_unmapped_area

Urb completion handler returns -32

2014-09-29 Thread Naveen Kumar Parna
Hi All, I want to know the reason for getting INT urb completion status as -EPIPE ? Thanks, Pnav -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] usb: gadget: f_rndis: fix usb_interface_descriptor for rndis

2014-09-29 Thread Heiko Schocher
Hello Lars, sorry for my late answer ... Am 24.09.2014 16:22, schrieb Lars Melin: On 2014-09-24 20:12, Heiko Schocher wrote: Hello Lars, Am 24.09.2014 14:25, schrieb Lars Melin: On 2014-09-24 13:48, Heiko Schocher wrote: use the values for RNDIS over Ethernet as defined in http://www.usb.or

[PATCH v3 1/1] usb: chipidea: using devm_request_irq to instead of request_irq

2014-09-29 Thread Peter Chen
Using devm_request_irq to instead of request_irq. Suggested-by: Arnd Bergmann Signed-off-by: Peter Chen --- Changes for v3: - Fix checkpatch.pl error Changes for v2: - Fix missing 'dev' for devm_request_irq drivers/usb/chipidea/core.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions

Re: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

2014-09-29 Thread Huang Rui
On Sun, Sep 28, 2014 at 06:41:39PM -0500, Felipe Balbi wrote: > Hi, > > On Sun, Sep 28, 2014 at 11:11:23AM +0800, Huang Rui wrote: > > On Fri, Sep 26, 2014 at 09:35:21AM -0500, Felipe Balbi wrote: > > > On Fri, Sep 26, 2014 at 04:50:26PM +0800, Huang Rui wrote: > > > > On Thu, Sep 25, 2014 at 09:5

Re: [GIT PULL] USB changes for v3.18 merge window

2014-09-29 Thread Geert Uytterhoeven
On Wed, Sep 17, 2014 at 7:56 PM, Felipe Balbi wrote: > Andrzej Pietrasiewicz (23): > usb: gadget: uvc: rename functions to avoid conflicts with host uvc It seems not everything got renamed: drivers/usb/gadget/function/uvc_v4l2.c:363:23: error: 'uvcg_v4l2_get_unmapped_area' undeclared here

Re: [PATCH v6 2/4] usb: gadget: Refactor request completion

2014-09-29 Thread Michal Sojka
On Mon, Sep 29 2014, Robert Baldyga wrote: > Hi, > > On 09/24/2014 10:43 PM, Michal Sojka wrote: >> Use the recently introduced usb_gadget_giveback_request() in favor of >> direct invocation of the completion routine. >> >> All places in drivers/usb/ matching "[-.]complete(" were replaced with a >

Re: [PATCH v6 2/4] usb: gadget: Refactor request completion

2014-09-29 Thread Robert Baldyga
Hi, On 09/24/2014 10:43 PM, Michal Sojka wrote: > Use the recently introduced usb_gadget_giveback_request() in favor of > direct invocation of the completion routine. > > All places in drivers/usb/ matching "[-.]complete(" were replaced with a > call to usb_gadget_giveback_request(). This was com

Re: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

2014-09-29 Thread Heikki Krogerus
> > > A question, the dwc3 controller is the PCI-E device in my platform, > > > but the class code of PCI header is 0x0c0330, the same with xHC. > > > That's because it need to meet the windows enviroment. The dwc3 > > > controller acted as only host mode to bind with windows xhci driver. > > > But