Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-24 Thread Barry Song
2013/7/18 Greg KH gre...@linuxfoundation.org: On Wed, Jul 17, 2013 at 10:57:06AM +0300, Felipe Balbi wrote: Hi, On Mon, Jul 15, 2013 at 11:31:17PM -0700, Greg KH wrote: The question is since we default GADGET, so the g_mass_storage.ko is installed early but connecting to a host PC is

Re: [PATCH 2/2] usb: dwc3: ep0: don't change to configured state too early

2013-07-24 Thread Felipe Balbi
Hi, On Tue, Jul 23, 2013 at 12:53:53PM -0400, Alan Stern wrote: I see. Doesn't the mass-storage gadget also use delayed status when going into the _un_configured state? no it doesn't, we bail out early if config number is zero, look at composite.c and you'll see in case of

[PATCHv2 1/2][usbutils] lsusb: port to hwdb

2013-07-24 Thread Tom Gundersen
Most of the information in usb.ids is now contained in udev's hwdb. Read the information from the hwdb instead of usb.ids. This would allow distributions to no longer ship (most of) usb.ids by default, but rather keep all the usb device information in the hwdb. This patchintroduces a dependency

Re: FUSB200 xhci issue

2013-07-24 Thread Oleksij Rempel
Am 23.07.2013 20:26, schrieb Christian Lamparter: On Tuesday, July 23, 2013 06:59:46 AM Oleksij Rempel wrote: Am 22.07.2013 23:23, schrieb Christian Lamparter: On Monday, July 22, 2013 10:47:41 PM Oleksij Rempel wrote: Am 22.07.2013 21:54, schrieb Christian Lamparter: Hello! On Monday, July

[PATCH - bugfix for 3.11] usb/gadget: ether: put_usb_function on unbind

2013-07-24 Thread Andrzej Pietrasiewicz
Fix bugs introduced in 9c62ce83e4258bacc459faf57bf2ed83cce6be08 usb: gadget: ether: convert to new interface of f_ecm 94b5573e97729f0e1496d23b69cbe2c6b24ec0c3 usb: gadget: ether: convert to new interface of f_eem 8af5232d6f48896b151898ccb2e9e155481bb785 usb: gadget: ether: convert to new

Re: [PATCH] staging: dwc2: add driver parameter to set AHB config register value

2013-07-24 Thread Matthijs Kooijman
Hey Paul, diff --git a/drivers/staging/dwc2/core.h b/drivers/staging/dwc2/core.h index fc075a7..e771e40 100644 --- a/drivers/staging/dwc2/core.h +++ b/drivers/staging/dwc2/core.h @@ -150,10 +150,11 @@ enum dwc2_lx_state { * are enabled * @reload_ctl:

Re: [PATCH] staging: dwc2: add driver parameter to set AHB config register value

2013-07-24 Thread Matthijs Kooijman
Hey Paul, one more thing: + * -1 - GAHBCFG value will not be overridden This seems incorrect: If it is set to -1, GAHBCFG will be set to 0x06 (INCR4), it is not left unchanged. I'll also include this in my documentation patch. Gr. Matthijs -- To

[PATCH v2] staging: dwc2: Don't touch the dma_mask when dma is disabled

2013-07-24 Thread Matthijs Kooijman
There was some code that cleared the dma_mask when dma was disabled in the driver. Given that clearing the mask doesn't actually tell the usb core we're not using dma, and a previous commit explicitely sets the hcd-self.uses_dma value, it seems these values are unneeded and can only potentially

usb cdc-acm driver cause windows xp sp3 blue screen randomly

2013-07-24 Thread Yingchun Li
Hi, I have a cdc-acm usb device, used for transfering data to/from windows PC, for windows PC, and I use the Documentation/usb/linux-cdc-acm.inf to load the windows driver(which is the usbser.sys). On PC, there is an application use the COM port to transfer the data. During transfer,

RE: [PATCH v2 0/8] Common Clock Framework support for Samsung S3C64xx

2013-07-24 Thread Kukjin Kim
Tomasz Figa wrote: This series is an attempt to move clock support on Samsung S3C64xx SoCs to Common Clock Framework. First, support for PLL types present on S3C64xx SoCs is added to Samsung Common Clock Framework driver. Then the main clock driver for mentioned SoCs is introduced.

Re: [PATCH 7/7] usb: phy: msm: Lindent the code

2013-07-24 Thread Felipe Balbi
On Mon, Jun 24, 2013 at 06:27:44PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com Cc: Felipe Balbi ba...@ti.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: linux-usb@vger.kernel.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Ivan T. Ivanov

Re: [PATCH 0/9] Tegra USB cleanup series

2013-07-24 Thread Felipe Balbi
Hi, On Mon, Jul 01, 2013 at 04:03:41PM -0600, Stephen Warren wrote: On 06/28/2013 03:36 PM, Tuomas Tynkkynen wrote: Hi, Here's a few cleanup patches for the Tegra USB drivers, to be applied on top of Mikko's two patch sets. It mostly deals with removing all usage of platform data

Re: [PATCH v2 1/7] usb: phy: msm: Move mach depndend code to platform data

2013-07-24 Thread Felipe Balbi
On Tue, Jul 09, 2013 at 06:47:07PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com This patch fix compilation error and is an intermediate step before the addition of DeviceTree support for newer targets. Fix suggested here: https://lkml.org/lkml/2013/6/19/381 Cc:

Re: [PATCH v2 1/7] usb: phy: msm: Move mach depndend code to platform data

2013-07-24 Thread Felipe Balbi
On Wed, Jul 24, 2013 at 03:34:43PM +0300, Felipe Balbi wrote: On Tue, Jul 09, 2013 at 06:47:07PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com This patch fix compilation error and is an intermediate step before the addition of DeviceTree support for newer targets.

Re: [PATCH v2 2/7] usb: phy: msm: Migrate to Managed Device Resource allocation

2013-07-24 Thread Felipe Balbi
Hi, On Tue, Jul 09, 2013 at 06:47:08PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com Use managed device resources to clean up the probe/remove and get DT support for free. Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com --- drivers/usb/phy/phy-msm-usb.c | 78

Re: [PATCH v2 3/7] usb: phy: msm: Move regulator usage to managed resource allocation

2013-07-24 Thread Felipe Balbi
On Tue, Jul 09, 2013 at 06:47:09PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com This patch move global regulators variables to driver state structire and move allocation of the regulators to be devm managed. split into two patches please. One for moving the global

Re: [PATCH] musb: don't reset endpoint data toggle on blackfin

2013-07-24 Thread Felipe Balbi
On Thu, Jul 18, 2013 at 07:04:14PM -0400, Scott Jiang wrote: Reset endpoint data toggle would lead to failure for musb RTL version 1.9 on blackfin. is this specific to musb 1.9 or to blackfin ? -- balbi signature.asc Description: Digital signature

Nexus 4 causes system hang (xhci_hcd)

2013-07-24 Thread Vincent Thiele
Nexus 4 causes system hang (xhci_hcd): When I connect my Nexus 4 to the USB-Port (Front USB 3.0) the whole system hangs. Sometimes it starts working again after a short time. But often I need to press the reset button. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1203453 Keywords:

[PATCH] staging: ozwpan: Fix coding style.

2013-07-24 Thread Rupesh Gujare
This patch fixes coding style issues reported by Dan here:- http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2012-June/027767.html Signed-off-by: Rupesh Gujare rupesh.guj...@atmel.com --- drivers/staging/ozwpan/ozcdev.c | 15 --- 1 file changed, 8 insertions(+), 7

Buffer size for ALSA USB PCM audio

2013-07-24 Thread Alan Stern
I have been studying the data_ep_set_params() function in sound/usb/endpoint.c. This is the routine that calculates the number of samples and I/O requests to keep on the USB hardware queue for PCM audio, based on the ALSA parameters. It uses the PERIOD_BYTES parameter but not BUFFER_BYTES. In

Re: Buffer size for ALSA USB PCM audio

2013-07-24 Thread Takashi Iwai
At Wed, 24 Jul 2013 10:41:43 -0400 (EDT), Alan Stern wrote: I have been studying the data_ep_set_params() function in sound/usb/endpoint.c. This is the routine that calculates the number of samples and I/O requests to keep on the USB hardware queue for PCM audio, based on the ALSA

Re: usb cdc-acm driver cause windows xp sp3 blue screen randomly

2013-07-24 Thread Greg KH
On Wed, Jul 24, 2013 at 08:11:05PM +0800, Yingchun Li wrote: Hi, I have a cdc-acm usb device, used for transfering data to/from windows PC, for windows PC, and I use the Documentation/usb/linux-cdc-acm.inf to load the windows driver(which is the usbser.sys). On PC, there is an

Re: [Pull Request] xhci: Features for 3.12

2013-07-24 Thread Sarah Sharp
On Tue, Jul 23, 2013 at 03:19:47PM -0700, Greg Kroah-Hartman wrote: On Tue, Jul 23, 2013 at 03:01:32PM -0700, Sarah Sharp wrote: The following changes since commit 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b: Linux 3.11-rc2 (2013-07-21 12:05:29 -0700) are available in the git

Re: Buffer size for ALSA USB PCM audio

2013-07-24 Thread Takashi Iwai
At Wed, 24 Jul 2013 11:22:00 -0400 (EDT), Alan Stern wrote: On Wed, 24 Jul 2013, Takashi Iwai wrote: At Wed, 24 Jul 2013 10:41:43 -0400 (EDT), Alan Stern wrote: I have been studying the data_ep_set_params() function in sound/usb/endpoint.c. This is the routine that calculates

Re: [PROBLEM/BUG] mouse polling at only half rate on ohci_hcd

2013-07-24 Thread Greg KH
On Wed, Jul 24, 2013 at 12:38:13AM -0500, Josef Schimke wrote: On 07/23/2013 09:57 PM, Greg KH wrote: On Tue, Jul 23, 2013 at 04:30:29AM -0500, Josef Schimke wrote: wrt that: 1. Am I on the right track thinking like that? 2. Does the USB stuff in the kernel already have a way to test

Re: Buffer size for ALSA USB PCM audio

2013-07-24 Thread Alan Stern
On Wed, 24 Jul 2013, Takashi Iwai wrote: At Wed, 24 Jul 2013 10:41:43 -0400 (EDT), Alan Stern wrote: I have been studying the data_ep_set_params() function in sound/usb/endpoint.c. This is the routine that calculates the number of samples and I/O requests to keep on the USB hardware

Re: Audio I/O parameters

2013-07-24 Thread Alan Stern
On Wed, 24 Jul 2013, James Stone wrote: Ok - this does seem to be a vast improvement over 3.8.x (and even, in some ways the 3.6x series) - with the addition of Clemen's patch. However, very low realtime latencies (which seemed to be somewhat possible - 64 frames/period or lower - in the 3.6x

Re: Nexus 4 causes system hang (xhci_hcd)

2013-07-24 Thread Sarah Sharp
On Wed, Jul 24, 2013 at 03:39:01PM +0200, Vincent Thiele wrote: Nexus 4 causes system hang (xhci_hcd): It helps if you Cc the xHCI driver maintainer (me) on bug reports. Otherwise you run the risk of getting lost in my inbox. :) When I connect my Nexus 4 to the USB-Port (Front USB 3.0) the

Re: Nexus 4 causes system hang (xhci_hcd)

2013-07-24 Thread Sarah Sharp
On Wed, Jul 24, 2013 at 08:25:18AM -0700, Sarah Sharp wrote: On Wed, Jul 24, 2013 at 03:39:01PM +0200, Vincent Thiele wrote: Nexus 4 causes system hang (xhci_hcd): It helps if you Cc the xHCI driver maintainer (me) on bug reports. Otherwise you run the risk of getting lost in my inbox. :)

Re: Buffer size for ALSA USB PCM audio

2013-07-24 Thread Alan Stern
On Wed, 24 Jul 2013, Takashi Iwai wrote: I don't understand. Consider a simple playback example. Suppose the user wants to keep the latency low, so he requests 2 periods per buffer. snd-usb-audio ignores this value and decides to use 10 URBs, which is equivalent to setting the buffer

Re: [PROBLEM/BUG] mouse polling at only half rate on ohci_hcd

2013-07-24 Thread Alan Stern
On Tue, 23 Jul 2013, Josef Schimke wrote: @@ -80,20 +80,26 @@ static int hid_start_in(struct hid_devic unsigned long flags; int rc = 0; struct usbhid_device *usbhid = hid-driver_data; + int i; spin_lock_irqsave(usbhid-lock, flags); if (hid-open 0

Re: Weird Serial number with Fitbit Base Station dongle

2013-07-24 Thread Alan Stern
On Wed, 24 Jul 2013, Laurent Bigonville wrote: Le Tue, 23 Jul 2013 10:16:00 -0400 (EDT), Alan Stern st...@rowland.harvard.edu a écrit : On Tue, 23 Jul 2013, Laurent Bigonville wrote: Hi, This is probably a minor issue, but when plugin the Fitbit base station dongle, I'm

Re: [PATCH 1/5] usb: xhci: add the suspend/resume functionality

2013-07-24 Thread Alan Stern
On Tue, 23 Jul 2013, Sarah Sharp wrote: From: Vikas Sajjan vikas.saj...@linaro.org Adds power management support to xHCI platform driver. This patch facilitates the transition of xHCI host controller between S0 and S3/S4 power states, during suspend/resume cycles. Signed-off-by:

Re: [Pull Request] xhci: Features for 3.12

2013-07-24 Thread Greg Kroah-Hartman
On Wed, Jul 24, 2013 at 08:13:49AM -0700, Sarah Sharp wrote: On Tue, Jul 23, 2013 at 03:19:47PM -0700, Greg Kroah-Hartman wrote: On Tue, Jul 23, 2013 at 03:01:32PM -0700, Sarah Sharp wrote: The following changes since commit 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b: Linux

Re: [PATCH v2] usb: host: xhci: Enable XHCI_SPURIOUS_SUCCESS for all controllers with xhci 1.0

2013-07-24 Thread Sarah Sharp
On Mon, Jul 22, 2013 at 03:58:19PM +0800, Shuduo Sang wrote: On Mon, Jul 22, 2013 at 3:23 PM, George Cherian george.cher...@ti.com wrote: Yes, I run below script to capture picture. #!/bin/bash # camera_stress.sh # Testing the camera by BinLi for ((i=0; i10 ; i++)) do fswebcam

Re: Nexus 4 causes system hang (xhci_hcd)

2013-07-24 Thread Vincent Thiele
My computer completely freezes. Sadly I can't test ssh. Also I use USB mouse and keyboard. Google Nexus 4 is an MTP mass storage device. I can try to compile a kernel but I'm relatively new to Linux. 2013/7/24 Sarah Sharp sarah.a.sh...@linux.intel.com: On Wed, Jul 24, 2013 at 08:25:18AM -0700,

Re: Enable xhci_hcd

2013-07-24 Thread Sarah Sharp
On Mon, Jul 01, 2013 at 05:41:34PM -0700, Greg KH wrote: On Tue, Jul 02, 2013 at 12:30:41AM +, Sultana wrote: Greg KH gregkh@... writes: If it's a loadable module, and it's not being loaded, then that usually means you don't have xhci hardware on your system. If you run 'lspci'

Re: [Pull Request] xhci: Features for 3.12

2013-07-24 Thread Sarah Sharp
On Wed, Jul 24, 2013 at 09:09:32AM -0700, Greg Kroah-Hartman wrote: On Wed, Jul 24, 2013 at 08:13:49AM -0700, Sarah Sharp wrote: On Tue, Jul 23, 2013 at 03:19:47PM -0700, Greg Kroah-Hartman wrote: On Tue, Jul 23, 2013 at 03:01:32PM -0700, Sarah Sharp wrote: The following changes since

Re: [PATCH 1/5] usb: xhci: add the suspend/resume functionality

2013-07-24 Thread Sarah Sharp
On Wed, Jul 24, 2013 at 11:55:57AM -0400, Alan Stern wrote: On Tue, 23 Jul 2013, Sarah Sharp wrote: From: Vikas Sajjan vikas.saj...@linaro.org Adds power management support to xHCI platform driver. This patch facilitates the transition of xHCI host controller between S0 and S3/S4

Re: [Pull Request] xhci: Features for 3.12

2013-07-24 Thread Greg Kroah-Hartman
On Wed, Jul 24, 2013 at 09:46:10AM -0700, Sarah Sharp wrote: On Wed, Jul 24, 2013 at 09:09:32AM -0700, Greg Kroah-Hartman wrote: On Wed, Jul 24, 2013 at 08:13:49AM -0700, Sarah Sharp wrote: On Tue, Jul 23, 2013 at 03:19:47PM -0700, Greg Kroah-Hartman wrote: On Tue, Jul 23, 2013 at

Re: [PATCH 0/9] Tegra USB cleanup series

2013-07-24 Thread Stephen Warren
On 07/24/2013 05:32 AM, Felipe Balbi wrote: Hi, On Mon, Jul 01, 2013 at 04:03:41PM -0600, Stephen Warren wrote: On 06/28/2013 03:36 PM, Tuomas Tynkkynen wrote: Hi, Here's a few cleanup patches for the Tegra USB drivers, to be applied on top of Mikko's two patch sets. It mostly deals with

Re: Nexus 4 causes system hang (xhci_hcd)

2013-07-24 Thread Sarah Sharp
On Wed, Jul 24, 2013 at 06:35:14PM +0200, Vincent Thiele wrote: My computer completely freezes. Sadly I can't test ssh. Also I use USB mouse and keyboard. Google Nexus 4 is an MTP mass storage device. I can try to compile a kernel but I'm relatively new to Linux. Ok, please try to follow those

Re: [PATCH 1/5] usb: xhci: add the suspend/resume functionality

2013-07-24 Thread Sarah Sharp
On Wed, Jul 24, 2013 at 01:02:31PM -0400, Alan Stern wrote: On Wed, 24 Jul 2013, Sarah Sharp wrote: +#ifdef CONFIG_PM +static int xhci_plat_suspend(struct device *dev) +{ + struct usb_hcd *hcd = dev_get_drvdata(dev); + struct xhci_hcd *xhci = hcd_to_xhci(hcd);

Re: [PATCH 2/2] usb: dwc3: ep0: don't change to configured state too early

2013-07-24 Thread Alan Stern
On Wed, 24 Jul 2013, Felipe Balbi wrote: Hi, On Tue, Jul 23, 2013 at 12:53:53PM -0400, Alan Stern wrote: I see. Doesn't the mass-storage gadget also use delayed status when going into the _un_configured state? no it doesn't, we bail out early if config number is zero, look at

Re: [PATCH] usb: xhci: Mark two functions __maybe_unused

2013-07-24 Thread Sarah Sharp
On Tue, Jul 23, 2013 at 11:58:20AM -0700, Olof Johansson wrote: Resolves the following build warnings: drivers/usb/host/xhci.c:332:13: warning: 'xhci_msix_sync_irqs' defined but not used [-Wunused-function] drivers/usb/host/xhci.c:3901:12: warning: 'xhci_change_max_exit_latency' defined but

Re: xhci driver problem

2013-07-24 Thread Sarah Sharp
On Tue, Jul 23, 2013 at 10:19:03AM -0700, Gene Kopan wrote: Hello Sarah, The result of setting bConfigurationValue to 0 is below (and then plugging in Xtion camera). This successfully disables the builtin web cam. It disabled the webcam, but it looks like the camera then

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-24 Thread Arnd Bergmann
On Tuesday 23 July 2013, Tomasz Figa wrote: On Tuesday 23 of July 2013 17:14:20 Alan Stern wrote: On Tue, 23 Jul 2013, Tomasz Figa wrote: Where would you want to have those phy_address arrays stored? There are no board files when booting with DT. Not even saying that you don't need to

Re: [RFC v4] xhci: fix dma mask setup in xhci.c

2013-07-24 Thread Xenia Ragiadakou
Hi Andy, Thanks for your remarks. I forward your mail to the usb list. Sorry about the double mails that you received, i forgot that i had CC you and Al Cooper inside the patch. On 07/24/2013 04:32 PM, Andy Shevchenko wrote: On Wed, Jul 24, 2013 at 4:56 AM, Xenia Ragiadakou

Re: v3.11-rc1 USB regressions

2013-07-24 Thread Aaro Koskinen
Hi, On Tue, Jul 16, 2013 at 08:57:10PM +0300, Aaro Koskinen wrote: On Tue, Jul 16, 2013 at 08:33:06AM +0200, Daniel Mack wrote: fe4cb0912f8e737f8e4b8b38b9e692f8062f5423 usb: musb: gadget: remove hcd initialization (Reverting this fixes error cdc_ether: probe of 4-1:1.0 failed

Re: v3.11-rc1 USB regressions

2013-07-24 Thread Daniel Mack
Hi Aaro, On 24.07.2013 20:51, Aaro Koskinen wrote: On Tue, Jul 16, 2013 at 08:57:10PM +0300, Aaro Koskinen wrote: Here are full details: Kernel v3.11-rc1 and the following USB fixes: ARM: omap2: fix musb usage for n8x0 musb: omap: Fix: pass all the resources to musb core [...]

Re: [PATCH V2 1/2] USB: OHCI: make ohci-ep93xx a separate driver

2013-07-24 Thread Alan Stern
On Tue, 23 Jul 2013, Manjunath Goudar wrote: Separate the OHCI EP93XX host controller driver from ohci-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 manjunath.gou...@linaro.org

Re: [PATCH V2 2/2] USB: OHCI: make ohci-pxa27x a separate driver

2013-07-24 Thread Alan Stern
On Tue, 23 Jul 2013, Manjunath Goudar wrote: Separate the OHCI pxa27x/pxa3xx host controller driver from ohci-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

RE: [PATCH] staging: dwc2: add microframe scheduler from downstream Pi kernel

2013-07-24 Thread Paul Zimmerman
From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Tuesday, July 23, 2013 2:59 PM On Wed, Jul 17, 2013 at 12:35:46PM -0700, Paul Zimmerman wrote: The transfer scheduler in the dwc2 driver is pretty basic, not to mention buggy. It works fairly well with just a couple of devices

External HDD does not work with 3.11-rc2

2013-07-24 Thread Philipp Dreimann
Hello, one of my external HDDs does not work using 3.11-rc2. The drive works using 3.10, and 3.9, except for a suspend/resume issue described here: https://bugzilla.redhat.com/show_bug.cgi?id=984189 . dmesg snipped: [ 119.334908] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd [

Re: External HDD does not work with 3.11-rc2

2013-07-24 Thread Alan Stern
On Wed, 24 Jul 2013, Philipp Dreimann wrote: Hello, one of my external HDDs does not work using 3.11-rc2. The drive works using 3.10, and 3.9, except for a suspend/resume issue described here: https://bugzilla.redhat.com/show_bug.cgi?id=984189 . dmesg snipped: [ 119.334908] usb 4-1:

Re: [PATCH V4] usb: Add Device Tree support to XHCI Platform driver

2013-07-24 Thread Sarah Sharp
It looks like all the feedback has been addressed, but I'm no device tree expert. Felipe, Matthijs, and Sergei, does this look good? If so, I'll queue to my xhci tree. Sarah Sharp On Tue, Jul 23, 2013 at 06:35:33PM -0400, Al Cooper wrote: Add Device Tree match table to xhci-plat.c. Add DT

[RFC] xhci: Avoid NULL pointer deref when host dies.

2013-07-24 Thread Sarah Sharp
Hi Vincent, I believe this patch will help your system, possibly ensuring it doesn't completely hang. I don't think it will fix the issue with your host controller though. After you've cloned Linus' tree, you can apply this patch by saving the raw email, and running `patch -p1 file`,

Re: [PATCH V4] usb: Add Device Tree support to XHCI Platform driver

2013-07-24 Thread Sergei Shtylyov
Hello. On 07/25/2013 01:21 AM, Sarah Sharp wrote: It looks like all the feedback has been addressed, but I'm no device tree expert. Felipe, Matthijs, and Sergei, does this look good? If so, I'll queue to my xhci tree. Not quite there yet. Too bad I couldn't notice all the small issues

Re: [PATCH V2] usb: serial: option: Add support for ONYX 3G device (ALFANETWORK)

2013-07-24 Thread Greg Kroah-Hartman
On Fri, Jun 28, 2013 at 02:29:23PM +0200, Enrico Mioso wrote: This patch, adds support for the ONYX 3G device by ALFA NETWRORK, based on a MSM90 chip from Qualcomm. Signed-off-by: Enrico Mioso mrkiko...@gmail.com I have two different patches (well 4 in reality) from you for this device, and

Re: [PATCH 1/1] usb,uhci: add a new tag for virtual uhci devices

2013-07-24 Thread Greg KH
On Wed, Jun 26, 2013 at 02:29:45PM +0800, Li, Zhen-Hua wrote: From: Li, Zhen-Hua zhen-h...@hp.com There's another patch trying to fix this warning: Controller not stopped yet!. It is : 997ff893603c6455da4c5e26ba1d0f81adfecdfc . I don't think it is appropriate to avoid auto-stop for all

Re: [PATCH 2/2] Remove static sizing of usb_device_id arrays

2013-07-24 Thread Greg KH
On Sat, Jun 22, 2013 at 08:55:59PM +0200, Anders Hammarquist wrote: Signed-off-by: Anders Hammarquist i...@iko.pp.se --- drivers/usb/serial/ti_usb_3410_5052.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) This patch, and your previous one, are no

Re: [PATCH v2] usb: host: Faraday fotg210-hcd driver

2013-07-24 Thread Greg KH
On Wed, Jun 19, 2013 at 07:53:04PM +, Yuan-Hsin Chen wrote: FOTG210 is an OTG controller which can be configured as an USB2.0 host. FOTG210 host is an ehci-like controller with some differences. First, register layout of FOTG210 is incompatible with EHCI. Furthermore, FOTG210 is lack of

[RFC v2] xhci: Avoid NULL pointer deref when host dies.

2013-07-24 Thread Sarah Sharp
Bah, I made a mistake in my first patch, try this one instead. Sarah Sharp 8--8 When the host controller fails to respond to an Enable Slot command, and the host fails to respond to the register write to abort the command ring, the

RE: [PATCH 00/13] staging: dwc2: Register-related cleanups

2013-07-24 Thread Paul Zimmerman
From: Matthijs Kooijman [mailto:matth...@stdin.nl] Sent: Wednesday, July 17, 2013 1:18 PM I was about to send out another patch which enhances the scheduling code in the driver. It finally makes the driver work well on the Raspberry Pi, at least in my testing. So I would rather submit

[RFC ebeam PATCH 0/2] new USB eBeam input driver

2013-07-24 Thread Yann Cantin
Hi, New USB input driver for eBeam devices. Currently supported (tested) : - Luidia eBeam classic projection and edge projection models - Nec interactive solution NP01Wi1 NP01Wi2 accessories. From basic usb point of view, all these devices are indistinguishable : they have the same usb ids and

[PATCH V3] usb: serial: option: Add ONYX 3G device support

2013-07-24 Thread Enrico Mioso
This patch adds support for the ONYX 3G device (version 1) from ALFA NETWORK. Signed-off-by: Enrico Mioso mrkiko...@gmail.com --- drivers/usb/serial/option.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 5dd857d..f5ce892

[RFC ebeam PATCH 2/2] input: misc: New USB eBeam input driver

2013-07-24 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- Documentation/ABI/testing/sysfs-driver-ebeam | 53 ++ drivers/input/misc/Kconfig | 22 + drivers/input/misc/Makefile | 1 + drivers/input/misc/ebeam.c | 763 +++

[RFC ebeam PATCH 1/2] hid: Blacklist eBeam devices

2013-07-24 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c | 3 +++ drivers/hid/hid-ids.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 36668d1..da5dfa0 100644 --- a/drivers/hid/hid-core.c +++

Re: v3.11-rc1 USB regressions

2013-07-24 Thread Aaro Koskinen
Hi, On Wed, Jul 24, 2013 at 09:04:28PM +0200, Daniel Mack wrote: On 24.07.2013 20:51, Aaro Koskinen wrote: When I revert fe4cb0912f8e737f8e4b8b38b9e692f8062f5423 and 8b125df5b24cfb0ec7fa1971e343cc0badc1827d, it works like before (3.10): I'm now running -rc2 with above fixes and reverts

Re: [PATCH 1/3] net/usb/r815x: replace USB buffer from stack to DMA-able

2013-07-24 Thread David Miller
From: hayeswang hayesw...@realtek.com Date: Tue, 23 Jul 2013 17:26:04 +0800 diff --git a/drivers/net/usb/r815x.c b/drivers/net/usb/r815x.c index 8523922..e9b99ba 100644 --- a/drivers/net/usb/r815x.c +++ b/drivers/net/usb/r815x.c @@ -24,34 +24,43 @@ static int pla_read_word(struct

Re: usb cdc-acm driver cause windows xp sp3 blue screen randomly

2013-07-24 Thread Yingchun Li
Ok, but the linux-cdc-acm.inf is provieded by us, so I think there should be something I can learn. Thanks anyway! On Wed, Jul 24, 2013 at 11:10 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Jul 24, 2013 at 08:11:05PM +0800, Yingchun Li wrote: Hi, I have a cdc-acm usb device,

Re: [PATCH 1/1] TX throttling bug-fixing patch of AX88179_178A

2013-07-24 Thread Ming Lei
On Tue, Jul 23, 2013 at 2:10 PM, Eric Dumazet eric.duma...@gmail.com wrote: On Mon, 2013-07-22 at 20:47 +0100, Ben Hutchings wrote: On Mon, 2013-07-22 at 11:47 -0700, Eric Dumazet wrote: On Mon, 2013-07-22 at 19:38 +0100, Ben Hutchings wrote: On Mon, 2013-07-22 at 11:29 -0700, Grant

Re: usb cdc-acm driver cause windows xp sp3 blue screen randomly

2013-07-24 Thread Xiaofan Chen
On Wed, Jul 24, 2013 at 8:11 PM, Yingchun Li sword.l.dra...@gmail.com wrote: Hi, I have a cdc-acm usb device, used for transfering data to/from windows PC, for windows PC, and I use the Documentation/usb/linux-cdc-acm.inf to load the windows driver(which is the usbser.sys). On

[PATCH] chipidea: ci_hdrc_imx: Remove unused variable 'res'

2013-07-24 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com 'res' is not used anywhere, so let's get rid of it. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- drivers/usb/chipidea/ci_hdrc_imx.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c

Re: usb cdc-acm driver cause windows xp sp3 blue screen randomly

2013-07-24 Thread Greg KH
On Thu, Jul 25, 2013 at 10:06:16AM +0800, Yingchun Li wrote: Ok, but the linux-cdc-acm.inf is provieded by us, so I think there should be something I can learn. A .inf file should not crash the kernel, if so, something is really wrong with their operating system :) good luck, greg k-h -- To

Re: usb cdc-acm driver cause windows xp sp3 blue screen randomly

2013-07-24 Thread Yingchun Li
Thanks xiaofan The usb device has been fixed by the chip romcode, so there is little chance for switching to HID. But can I implement a usb-serial driver with libusb, which just work like usbser.sys? I will check the libusb, thank you! On Thu, Jul 25, 2013 at 10:48 AM,

Re: [PATCH v4] staging: usbip: replace pr_warning() with dev_warn().

2013-07-24 Thread navin patidar
On Wed, Jul 24, 2013, Greg KH gre...@linuxfoundation.org said: On Thu, Jun 27, 2013 at 03:34:52PM +0530, navin patidar wrote: dev_warn() is preferred over pr_warning(). container_of() is used to get usb_driver pointer from usbip_device container (stub_device or vhci_device), to get device

Re: usb cdc-acm driver cause windows xp sp3 blue screen randomly

2013-07-24 Thread Xiaofan Chen
On Thu, Jul 25, 2013 at 12:39 PM, Yingchun Li sword.l.dra...@gmail.com wrote: Thanks xiaofan The usb device has been fixed by the chip romcode, so there is little chance for switching to HID. But can I implement a usb-serial driver with libusb, which just work like

Re: [PATCH v4] staging: usbip: replace pr_warning() with dev_warn().

2013-07-24 Thread Greg KH
On Thu, Jul 25, 2013 at 10:19:31AM +0530, navin patidar wrote: -pr_warning(Unable to start control thread\n); +struct device *dev; + +if (ud-side == USBIP_STUB) +dev = container_of(ud, struct stub_device, ud)-udev-dev; +else +

Re: [PATCH 1/1] TX throttling bug-fixing patch of AX88179_178A

2013-07-24 Thread Eric Dumazet
On Thu, 2013-07-25 at 10:28 +0800, Ming Lei wrote: It depends if size of sg buffer(except for last one) in the sg list can be divided by usb endpoint's max packet size(512 or 1024), at least there is the constraint:

Re: [PATCH 1/1] TX throttling bug-fixing patch of AX88179_178A

2013-07-24 Thread Ming Lei
On Thu, Jul 25, 2013 at 1:10 PM, Eric Dumazet eric.duma...@gmail.com wrote: On Thu, 2013-07-25 at 10:28 +0800, Ming Lei wrote: It depends if size of sg buffer(except for last one) in the sg list can be divided by usb endpoint's max packet size(512 or 1024), at least there is the constraint:

[PATCH 2/2] USBNET: increase max rx/tx qlen for improving USB3 thoughtput

2013-07-24 Thread Ming Lei
The default RX_QLEN()/TX_QLEN() didn't consider susper speed USB device, so only max 4 URBs are scheduled at the same time for tx/rx, then USB3 NIC can't perform very well. With this patch, both rx and tx thoughput are increased more than 100Mbps when doing iperf test on ax88179_178a USB 3.0 NIC.

[PATCH 0/2] USBNET: max rx/tx qlen change

2013-07-24 Thread Ming Lei
Hi, There are two patches on computing max rx/tx qlen, and fix one performance problem on USB3 NIC. drivers/net/usb/asix_devices.c |3 +++ drivers/net/usb/ax88179_178a.c |3 +++ drivers/net/usb/usbnet.c | 54 ++-- include/linux/usb/usbnet.h

[PATCH 1/2] USBNET: centralize computing of max rx/tx qlen

2013-07-24 Thread Ming Lei
This patch centralizes computing of max rx/tx qlen, because: - RX_QLEN()/TX_QLEN() is called in hot path - computing depends on device's usb speed, now we have ls/fs, hs, ss, so more checks need to be involved - in fact, max rx/tx qlen should not only depend on device USB speed, but also depend

Re: [PATCH v12 00/13] Add tested id switch and vbus connect detect support for Chipidea

2013-07-24 Thread Marek Vasut
Hi Peter, On Mon, Jul 22, 2013 at 03:40:32AM +0200, Marek Vasut wrote: Dear Peter Chen, On Mon, Jul 22, 2013 at 03:15:28AM +0200, Marek Vasut wrote: Hi Peter, On Fri, Jul 12, 2013 at 03:18:31PM +0200, Marek Vasut wrote: Hi Peter, On Fri, Jul 12, 2013 at