Re: [BUG] USB mass storage device incomplete read command sequence

2018-01-04 Thread Eduardo Trápani
On 04/01/18 01:12, Matthew Dharm wrote: The TUR commands come from the sd_mod (I think). Definitely not from usb-storage. So I would take it up at that level. Thanks Matt. I'm going to do that. And that information also helps me try to find the right code to patch. -- To unsubscribe from th

Re: [PATCH v4 1/3] usb: host: Implement workaround for Erratum A-007463

2018-01-04 Thread Mathias Nyman
On 19.12.2017 12:16, yinbo@nxp.com wrote: From: yinbo.zhu When a transaction error (defined in Section 4.10.2.3, "USB Transaction Error" of the xHCI Specification) occurs on the USB, the host controller reports this through a transfer event with the completion code "USB Transaction Error".

Re: [PATCH v4 2/3] usb: host: Implement workaround for Erratum A-009611

2018-01-04 Thread Mathias Nyman
On 19.12.2017 12:16, yinbo@nxp.com wrote: From: yinbo.zhu This is a occasional problem where the software issues an End Transfer command while a USB transfer is in progress, resulting in the TxFIFO being flushed when the lower layer is waiting for data, causing the super speed (ss) transmi

Re: [PATCH] USB: cp210x Add new device ID ELV ALC 8xxx

2018-01-04 Thread Johan Hovold
On Wed, Jan 03, 2018 at 07:53:02PM +0100, Christian Holl wrote: > This adds the ELV ALC 8xxx Battery Charging device > to the list of USB IDs of drivers/usb/serial/cp210x.c > > Signed-off-by: Christian Holl > --- Thanks for resending, this one applied just fine. Johan -- To unsubscribe from thi

Re: [PATCH v4 3/3] usb: host: Implement workaround for Erratum A-009668

2018-01-04 Thread Mathias Nyman
On 19.12.2017 12:16, yinbo@nxp.com wrote: From: yinbo.zhu This issue is observed in USB 2.0 mode when the USB 3.0 host controller is connected to a FS/LS device via a hub. The host controller issues start-split (SSPLIT) and (CSPLIT) tokens to accomplish a split-transaction. A split-transact

Re: USB gadget : generic functionfs function has no os_desc while rndis function has, why?

2018-01-04 Thread Krzysztof Opasiak
On 01/04/2018 06:58 AM, Jun Sun wrote: Hi, all, I'm playing with USB gadget with configfs on raspberry pi zero w. My goal is to setup a generic functionfs function that uses Windows OS descriptor so that windows would automatically install winusb driver. It seems I would have to - enable MS-

Re: [PATCH] usb: do not reset if a low-speed device timed out

2018-01-04 Thread Alan Stern
On Thu, 4 Jan 2018, Maxim Moseychuk wrote: > Some low-speed devices (for example, bluetooth) do not have > time to initialize. For them, ETIMEDOUT is a valid error. > We need to give them another try. Otherwise, they will > never be initialized correctly and in dmesg will be messages > "Bluetooth:

Re: [BUG] USB mass storage device incomplete read command sequence

2018-01-04 Thread Alan Stern
On Wed, 3 Jan 2018, Matthew Dharm wrote: > The TUR commands come from the sd_mod (I think). Definitely not from > usb-storage. So I would take it up at that level. > > Matt > > On Wed, Jan 3, 2018 at 4:25 PM, Eduardo Trápani wrote: > > Usually the kernel reads the pendrive like this: > > > >

Re: [PATCH] usb: do not reset if a low-speed device timed out

2018-01-04 Thread Maxim Mosechuk
В Чт, 04/01/2018 в 11:57 -0500, Alan Stern пишет: > On Thu, 4 Jan 2018, Maxim Moseychuk wrote: > > > Some low-speed devices (for example, bluetooth) do not have > > time to initialize. For them, ETIMEDOUT is a valid error. > > We need to give them another try. Otherwise, they will > > never be ini

Re: [BUG] USB mass storage device incomplete read command sequence

2018-01-04 Thread Eduardo Trápani
But under some conditions, the last TEST UNIT READY is not being sent and because of that, on this device: Kingston DT 101 G2, the drive's activity light keeps on blinking even though nothing is being done (no read/writes/inquiries). In addition to Matt's comments, it's worth pointing out that t

Help needed debugging Motorola Solutions TETRA PEI interface

2018-01-04 Thread Max Schulze
Hello, I need some advice how to debug a device, that under Windows presents 2 virtual com ports. Windows .sys. file mentions a "Jungo CDC ACM OBEX Driver". I get the following dmesg output > [ 1700.263981] usb 1-1.4: new full-speed USB device number 10 using > ehci-pci > [ 1700.378186] usb 1-1

[PATCH v2] usb: do not reset if a low-speed or full-speed device timed out

2018-01-04 Thread Maxim Moseychuk
Some low-speed and full-speed devices (for example, bluetooth) do not have time to initialize. For them, ETIMEDOUT is a valid error. We need to give them another try. Otherwise, they will never be initialized correctly and in dmesg will be messages "Bluetooth: hci0 command 0x1002 tx timeout" or sim

Re: [PATCH][next] usbip: vhci: fix spelling mistake: "synchronuously" -> "synchronously"

2018-01-04 Thread Shuah Khan
On 01/03/2018 02:18 AM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in dev_dbg debug message. > > Signed-off-by: Colin Ian King > --- > drivers/usb/usbip/vhci_rx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/usbip/vhci_

[PATCH 3/3] ARM: dts: r7s72100: add USB device to device tree

2018-01-04 Thread Chris Brandt
Add USB device support. Signed-off-by: Chris Brandt --- arch/arm/boot/dts/r7s72100.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi index ab9645a42eca..eb414e735185 100644 --- a/arch/arm/boot/dts/r7s7

[PATCH 1/3] usb: renesas_usbhs: Add support for RZ/A1

2018-01-04 Thread Chris Brandt
This patch adds the capability to support RZ/A1 SoCs. Signed-off-by: Chris Brandt --- drivers/usb/renesas_usbhs/Makefile | 2 +- drivers/usb/renesas_usbhs/common.c | 17 + drivers/usb/renesas_usbhs/common.h | 6 + drivers/usb/renesas_usbhs/rza.c| 52

[PATCH 0/3] usb: renesas_usbhs: Add RZ/A1 support

2018-01-04 Thread Chris Brandt
This series adds RZ/A1 gadget support to the renesas_usbhs driver. Basically, it's almost the same HW as the R-Car (and SH) parts. The only real difference is the some extra registers for the PHY. This was tested on an RSK board by connecting to a PC as an Ethernet CDC gadget. Chris Brandt (3):

[PATCH 2/3] dt-bindings: usb: renesas_usbhs: Add support for RZ/A1

2018-01-04 Thread Chris Brandt
Document support for RZ/A1 SoCs Signed-off-by: Chris Brandt --- Documentation/devicetree/bindings/usb/renesas_usbhs.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/renesas_usbhs.txt b/Documentation/devicetree/bindings/usb/renesas_usbhs.txt index 4

Re: xhci: Reset Renesas uPD72020x USB controller for 32-bit DMA issue

2018-01-04 Thread Troy Kisky
On 12/29/2017 3:34 AM, Marc Zyngier wrote: > On Wed, 27 Dec 2017 20:37:07 +, > Troy Kisky wrote: >> >> On 12/27/2017 2:37 AM, Marc Zyngier wrote: >>> On Tue, 26 Dec 2017 21:57:58 +, >>> Troy Kisky wrote: On 12/26/2017 1:52 PM, Troy Kisky wrote: > On 12/25/2017 2:10 AM, Marc Zy