Re: Slightly off-topic, USB code in Linux working, but fails in U-Boot

2014-02-13 Thread Peter Chen
On Wed, Feb 12, 2014 at 03:36:57PM -0500, Ben Collins wrote: On Feb 9, 2014, at 9:38 PM, Peter Chen peter.c...@freescale.com wrote: desc = (struct usb_device_descriptor *)tmpbuf; dev-descriptor.bMaxPacketSize0 = 64; /* Start off at 64 bytes */ /* Default to

Re: [PATCH] usbnet: remove generic hard_header_len check

2014-02-13 Thread Bjørn Mork
Emil Goode emilgo...@gmail.com writes: This patch removes a generic hard_header_len check from the usbnet module that is causing dropped packages under certain circumstances for devices that send rx packets that cross urb boundaries. One example is the AX88772B which occasionally send rx

Speed Problem with FunctionFS

2014-02-13 Thread Marco Zamponi
I am using functionfs to transfer data with a bulk highspeed endpoint. However I am only able to achieve Data rates of 8Mb/s. What ways are there to improve the speed? -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More

[RFC] usb: remove clear_halt for a busy endpoint warning

2014-02-13 Thread Stanislaw Gruszka
Hello, We have lot of clear_halt for a busy endpoint warnings reported. [ 546.758270] WARNING: at drivers/usb/host/ehci-hcd.c:1051 ehci_endpoint_reset+0x113/0x120() [ 546.758272] clear_halt for a busy endpoint ... [ 546.758352] [8105cdec] warn_slowpath_fmt+0x4c/0x50 [ 546.758355]

Re: USB storage vanilla kernel 3.13 hang on DELL PRECISION M6400

2014-02-13 Thread Thomas Gleixner
On Wed, 12 Feb 2014, Alan Stern wrote: I have no idea what might have changed between 3.12 and 3.13 to cause this problem. Maybe Thomas can figure it out. And yes, the issues goes away when no thread irqs are used (with and without the patch). Thomas, there must be some reason why the

Re: [PATCH] usbnet: remove generic hard_header_len check

2014-02-13 Thread Emil Goode
On Thu, Feb 13, 2014 at 10:05:39AM +0100, Bjørn Mork wrote: Emil Goode emilgo...@gmail.com writes: This patch removes a generic hard_header_len check from the usbnet module that is causing dropped packages under certain circumstances for devices that send rx packets that cross urb

RE: [PATCH] usbnet: remove generic hard_header_len check

2014-02-13 Thread David Laight
From: Emil Goode int rndis_rx_fixup(struct usbnet *dev, struct sk_buff *skb) { + /* This check is no longer done by usbnet */ + if (skb-len dev-net-hard_header_len) + return 0; + Wouldn't it be better to test against ETH_HLEN, since that is a constant and

g_ffs module parameters don't take spaces?

2014-02-13 Thread Marco Zamponi
I have added module parameters to the functionfs module in the kernel commandline. I used escaped quotes surrounding the Strings that have space. This is my commandline: mem=128M console=ttyS0,115200

Re: Slightly off-topic, USB code in Linux working, but fails in U-Boot

2014-02-13 Thread Alan Stern
On Thu, 13 Feb 2014, Peter Chen wrote: - If you have a usb bus analyzer, please check if the GET_DESCRPTOR sends out successfully. (Most probably, I don't think it sends out) I've attached a screen cap of the USB capture. At the to in red is the SETUP txn that fails in u-boot

Re: [RFC] usb: remove clear_halt for a busy endpoint warning

2014-02-13 Thread Alan Stern
On Thu, 13 Feb 2014, Stanislaw Gruszka wrote: Hello, We have lot of clear_halt for a busy endpoint warnings reported. [ 546.758270] WARNING: at drivers/usb/host/ehci-hcd.c:1051 ehci_endpoint_reset+0x113/0x120() [ 546.758272] clear_halt for a busy endpoint ... [ 546.758352]

Re: Speed Problem with FunctionFS

2014-02-13 Thread Greg KH
On Thu, Feb 13, 2014 at 10:34:19AM +0100, Marco Zamponi wrote: I am using functionfs to transfer data with a bulk highspeed endpoint. However I am only able to achieve Data rates of 8Mb/s. What ways are there to improve the speed? How do you know this isn't the fastest your device can handle?

Re: USB storage vanilla kernel 3.13 hang on DELL PRECISION M6400

2014-02-13 Thread Alan Stern
On Thu, 13 Feb 2014, Thomas Gleixner wrote: On Wed, 12 Feb 2014, Alan Stern wrote: I have no idea what might have changed between 3.12 and 3.13 to cause this problem. Maybe Thomas can figure it out. And yes, the issues goes away when no thread irqs are used (with and without the

RE: PROBLEM: XHCI Host Controller on Intel Panther Point with CDC/ACM dead after massive NAK

2014-02-13 Thread Alan Stern
On Thu, 13 Feb 2014, Kasberger Andreas wrote: Ah, I see the reason for your confusion. On USB buses, Wireshark captures URBs, not packets. An URB can contain multiple packets. In this case, there was a single URB containing two data packets. Each packet was 64 bytes, and the URB was 128

Re: [RFC] usb: remove clear_halt for a busy endpoint warning

2014-02-13 Thread Bjørn Mork
Alan Stern st...@rowland.harvard.edu writes: Schould we request to fix that in user space, or can we remove this warning like on below patch (call CLEAR_HALT ioctl, does not seems to do any harm except printing a warning) ? Doing an endpoint reset while URBs are queued is a bug, because

RE: PROBLEM: XHCI Host Controller on Intel Panther Point with CDC/ACM dead after massive NAK

2014-02-13 Thread Kasberger Andreas
Does my log means it has nothing to do with kernel itself ? Maybe you're experiencing a problem with link power management. Some changes were just merged into Greg KH's development tree (the usb-linus branch), and they should appear in the next 3.14-rc release. You could try either one of

Re: USB storage vanilla kernel 3.13 hang on DELL PRECISION M6400

2014-02-13 Thread Thomas Gleixner
On Thu, 13 Feb 2014, Alan Stern wrote: On Thu, 13 Feb 2014, Thomas Gleixner wrote: I can think of two other solutions. The first is to move the non-hardirq-safe hrtimers into threaded softirq context, as mentioned above. Right, but that's major surgery. The second is for ehci_hrtimer_func

Re: [RFC] usb: remove clear_halt for a busy endpoint warning

2014-02-13 Thread Alan Stern
On Thu, 13 Feb 2014, Bjørn Mork wrote: Alan Stern st...@rowland.harvard.edu writes: Schould we request to fix that in user space, or can we remove this warning like on below patch (call CLEAR_HALT ioctl, does not seems to do any harm except printing a warning) ? Doing an endpoint

Re: Slightly off-topic, USB code in Linux working, but fails in U-Boot

2014-02-13 Thread Ben Collins
On Feb 13, 2014, at 10:19 AM, Alan Stern st...@rowland.harvard.edu wrote: Since I can't see device IN response for setup stage from your capture log, but I assume the device is ok. If the SETUP packet is invalid, the device won't respond to it. If the SETUP packet is valid, the device MUST

Re: Slightly off-topic, USB code in Linux working, but fails in U-Boot

2014-02-13 Thread Ben Collins
On Feb 13, 2014, at 10:19 AM, Alan Stern st...@rowland.harvard.edu wrote: On Thu, 13 Feb 2014, Peter Chen wrote: - If you have a usb bus analyzer, please check if the GET_DESCRPTOR sends out successfully. (Most probably, I don't think it sends out) I've attached a screen cap of the USB

Re: [PATCH v2] usbnet: remove generic hard_header_len check

2014-02-13 Thread Emil Goode
On Thu, Feb 13, 2014 at 04:56:58PM +, David Laight wrote: From: Of Emil Goode This patch removes a generic hard_header_len check from the usbnet module that is causing dropped packages under certain circumstances for devices that send rx packets that cross urb boundaries. One

Re: USB storage vanilla kernel 3.13 hang on DELL PRECISION M6400

2014-02-13 Thread Peter Zijlstra
On Thu, Feb 13, 2014 at 05:27:20PM +0100, Thomas Gleixner wrote: I think, that's the simplest option for now. We'll look into the hrtimer issue anyway, but as I said it's not a two lines patch. Yeah, and don't forget the reason we ripped that hrtimer softirq stuff out of mainline :-) -- To

usb/serial/io_ti.c broken on BE systems

2014-02-13 Thread Ludovic
Hello, I'm trying to use Edgeport sensors on my Openwrt router (Atheros MIPS CPU with 3.3.8 kernel). It does not work and I have enabled debug output below: Feb 11 20:28:42 10.0.0.254 kernel: [5650055.17] usb 1-1: new full-speed USB device number 10 using ehci-platform Feb 11 20:28:42

[PATCH Resend] net: asix: add missing flag to struct driver_info

2014-02-13 Thread Emil Goode
The struct driver_info ax88178_info is assigned the function asix_rx_fixup_common as it's rx_fixup callback. This means that FLAG_MULTI_PACKET must be set as this function is cloning the data and calling usbnet_skb_return. Not setting this flag leads to usbnet_skb_return beeing called a second

Re: rpi/dwc2 kernel panics

2014-02-13 Thread Andre Heider
cycles. Same thing here with linux-next (Linux rpi 3.14.0-rc2-next-20140213-rpi). The last traces has systemd in there, but good old sysvinit crashed spectacular too. FWIW, I am running: * A rev2 Model B * Firmware commit 9c3d7b6 Add latest linaro gcc toolchain: gcc-linaro-arm-linux-gnueabihf

[PATCH] USB: EHCI: add delay during suspend to prevent erroneous wakeups

2014-02-13 Thread Alan Stern
High-speed USB connections revert back to full-speed signalling when the device goes into suspend. This takes several milliseconds, and during that time it's not possible to tell reliably whether the device has been disconnected. On some platforms, the Wake-On-Disconnect circuitry gets confused

[PATCH 1/7] usb: dwc2: Add defines to support the s3c-hsotg driver

2014-02-13 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com In preparation of combining the dwc2/s3c-hsotg driver in a single DRD driver, the defines in dwc2/hw.h needs to get updated so that the s3c-hsotg driver can use them. Signed-off-by: Dinh Nguyen dingu...@altera.com Cc: Greg Kroah-Hartman

[PATCH 6/7] usb: dwc2: Enable the dwc2/s3c-hsotg to be a single dual-role driver

2014-02-13 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Similar to the DWC3 dual-role driver config, the default mode for the dwc2/s3c-hsotg driver is a dual-role driver. When the driver is built as a module the dwc2.ko and dwc2_platform.ko are the two ko's that should be insmod for all operation modes of the

[PATCH 2/7] usb: s3c-hsotg: Move s3c-hsotg into dwc2 folder

2014-02-13 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Moves the s3c-hsotg driver into the dwc2 folder and use the dwc2 defines in hw.h. The s3c-hostg driver will now be built with a kconfig option under the dwc2 kconfig. USB_DWC2_HOST and USB_S3C_HSOTG are mutually exclusive build options. Signed-off-by: Dinh

[PATCH 5/7] usb: dwc2: combine the dwc2 and s3c_hsotg to use a single IRQ handler

2014-02-13 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Make the dwc2_handle_common_intr() function handle all interrupts for the DWC2 and s3c_hsotg driver. Signed-off-by: Dinh Nguyen dingu...@altera.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Paul Zimmerman pa...@synopsys.com Cc: Felipe Balbi

[PATCH 3/7] usb: s3c-hsotg: Move s3c-hsotg data structures

2014-02-13 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com This patch moves the data structures that are in the s3c-hsotg source into core.h. This is a necessary step towards unifying the s3c-hsotg and dwc2 into a single DRD. Signed-off-by: Dinh Nguyen dingu...@altera.com Cc: Greg Kroah-Hartman

[PATCH 0/7] usb: dwc2/s3c-hsotg: Combine drivers into a single DRD

2014-02-13 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Hello, This patch series combines the dwc2 host driver and the s3c-hsotg peripheral driver into a single dual-roler driver similar to the dwc3. The patch series moves the s3c-hsotg files into the /dwc2 folder, so this is the final location of the driver.

[PATCH 7/7] usb: dwc2: Split out the dwc2/sc3-hsotg driver mode's build dependency

2014-02-13 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Only build the core components of the dual-role driver, and only build the necessary functions for the various modes. When buildling for host mode, s3c_hsotg will not get built. When building for peripheral mode, the dwc2 host functions will not get built.

Re: rpi/dwc2 kernel panics

2014-02-13 Thread Andre Heider
On Thu, Feb 13, 2014 at 07:47:27PM +0100, Andre Heider wrote: In any case, I'm hesitant to blame this on a compiler bug since booting any of those kernels with nousb didn't yet end is weird panics. Then again, everything seems just fine with: gcc version 4.9.0 20140209 (experimental) (GCC) --

Re: USB disconnect randomly on USB 3.0 port

2014-02-13 Thread Sarah Sharp
On Thu, Feb 13, 2014 at 01:56:42PM +0900, Taegil Bae wrote: Hi, The bugreport on Bugzilla is Bug 70361: https://bugzilla.kernel.org/show_bug.cgi?id=70361 I have a Thinkpad OneLink dock, which is a USB dock and has a USB 3.0 hub, a USB 2.0 hub, and ax88179 ethernet. This dock's USB 3.0

Re: [PATCH] Fix Default to 'y' for SR9800 Device Driver, setting to 'n'

2014-02-13 Thread David Miller
From: liujunliang_...@163.com Date: Thu, 13 Feb 2014 12:22:19 +0800 From: Liu Junliang liujunliang_...@163.com Signed-off-by: Liu Junliang liujunliang_...@163.com I think it's more canonical to specify no default at all. -- To unsubscribe from this list: send the line unsubscribe linux-usb

Re: [PATCH] Fix Default to 'y' for SR9800 Device Driver, setting to 'n'

2014-02-13 Thread Sergei Shtylyov
Hello. On 02/14/2014 02:32 AM, David Miller wrote: From: Liu Junliang liujunliang_...@163.com Signed-off-by: Liu Junliang liujunliang_...@163.com I think it's more canonical to specify no default at all. That's what he did, no? WBR, Sergei -- To unsubscribe from this list: send

Re: [PATCH] Fix Default to 'y' for SR9800 Device Driver, setting to 'n'

2014-02-13 Thread David Miller
From: Sergei Shtylyov sergei.shtyl...@cogentembedded.com Date: Fri, 14 Feb 2014 03:38:17 +0300 Hello. On 02/14/2014 02:32 AM, David Miller wrote: From: Liu Junliang liujunliang_...@163.com Signed-off-by: Liu Junliang liujunliang_...@163.com I think it's more canonical to specify no

Re: [BUG] FL1009: xHCI host not responding to stop endpoint command.

2014-02-13 Thread Sarah Sharp
On Mon, Feb 10, 2014 at 07:57:42PM +0100, Arnaud Ebalard wrote: Sarah Sharp sarah.a.sh...@linux.intel.com writes: On Wed, Jan 22, 2014 at 11:43:16PM +0100, Arnaud Ebalard wrote: f5182b4155b9d686c5540a6822486400e34ddd98 xhci: Disable MSI for some Fresco Logic hosts. Technically, this

RE: [PATCH 1/7] usb: dwc2: Add defines to support the s3c-hsotg driver

2014-02-13 Thread Paul Zimmerman
From: dingu...@altera.com [mailto:dingu...@altera.com] Sent: Thursday, February 13, 2014 1:11 PM In preparation of combining the dwc2/s3c-hsotg driver in a single DRD driver, the defines in dwc2/hw.h needs to get updated so that the s3c-hsotg driver can use them. snip diff --git

RE: [PATCH 2/7] usb: s3c-hsotg: Move s3c-hsotg into dwc2 folder

2014-02-13 Thread Paul Zimmerman
From: dingu...@altera.com [mailto:dingu...@altera.com] Sent: Thursday, February 13, 2014 1:11 PM Moves the s3c-hsotg driver into the dwc2 folder and use the dwc2 defines in hw.h. The s3c-hostg driver will now be built with a kconfig option under the dwc2 kconfig. USB_DWC2_HOST and

Re: USB disconnect randomly on USB 3.0 port

2014-02-13 Thread Taegil Bae
Hi Sarah, Sorry for my bad English. I meant that even if I leaved the ethernet cable removed, disconnections occured repeatedly. I did not touch the USB cable. It seems not hardware problem since I cannot see a disconnection in Windows. I checked out the ethernet connection's uptime was very

Re: [PATCH 0/7] usb: dwc2/s3c-hsotg: Combine drivers into a single DRD

2014-02-13 Thread Jingoo Han
On Friday, February 14, 2014 6:11 AM, Dinh Nguyen wrote: From: Dinh Nguyen dingu...@altera.com Hello, This patch series combines the dwc2 host driver and the s3c-hsotg peripheral driver into a single dual-roler driver similar to the dwc3. The patch series moves the s3c-hsotg files

RE: [PATCH v2] usbnet: remove generic hard_header_len check

2014-02-13 Thread renevant
This patch appears to be a winner. My system appears to be completely stable with the check removed and scatter gather enabled with a ax88179. Currently running... Linus tree merged with for-usb-linus branch of the XHCI tree commit 247bf557273dd775505fb9240d2d152f4f20d304 reverted

Any change on REAPURB ioctl since 3.11.0?

2014-02-13 Thread Steven Xiao
Hello, I find REAPURB ioctl handles NRDY packets in different ways between Linux kernel 3.10.25 and 3.11.12. We connect a USB device(Cypress FX3 Dev kit) to the USB 3.0 port of the host and trigger an NRDY during the Bulk transfer between the host and the device. On the Linux host installed with

Re: rpi/dwc2 kernel panics

2014-02-13 Thread Stephen Warren
On 02/13/2014 11:47 AM, Andre Heider wrote: On Wed, Feb 12, 2014 at 08:00:18PM -0700, Stephen Warren wrote: On 02/12/2014 11:52 AM, Andre Heider wrote: Hi guys, I just tried today's Linus' master (45f7fdc2ff) with usb-linus (3635c7e2d5) merged on top to give the latest dwc2 fixes another

Re: [PATCH 0/7] usb: dwc2/s3c-hsotg: Combine drivers into a single DRD

2014-02-13 Thread Stephen Warren
On 02/13/2014 02:10 PM, dingu...@altera.com wrote: From: Dinh Nguyen dingu...@altera.com Hello, This patch series combines the dwc2 host driver and the s3c-hsotg peripheral driver into a single dual-roler driver similar to the dwc3. The patch series moves the s3c-hsotg files into the

Re: [PATCH 0/7] usb: dwc2/s3c-hsotg: Combine drivers into a single DRD

2014-02-13 Thread Peter Chen
On Thu, Feb 13, 2014 at 03:10:40PM -0600, dingu...@altera.com wrote: From: Dinh Nguyen dingu...@altera.com Hello, This patch series combines the dwc2 host driver and the s3c-hsotg peripheral driver into a single dual-roler driver similar to the dwc3. Does s3c-hsotg use dwc usb2 ip too? If

Re: [PATCH 0/7] usb: dwc2/s3c-hsotg: Combine drivers into a single DRD

2014-02-13 Thread Jingoo Han
On Friday, February 14, 2014 2:27 PM, Peter Chen wrote: On Thu, Feb 13, 2014 at 03:10:40PM -0600, dingu...@altera.com wrote: From: Dinh Nguyen dingu...@altera.com Hello, This patch series combines the dwc2 host driver and the s3c-hsotg peripheral driver into a single dual-roler driver