Re: HP Thunderbolt 3 Dock (90W): USB does not work

2017-09-16 Thread Matthias Lohr
These specific dmesg messages are from a 4.10.0 kernel, but 4.12, 4.13, 4.13.1 and 4.13.2 have the same problem. Here's the output from a 4.13.2 kernel: [...] [ 13.371999] usb 3-2: 2:1: cannot get freq at ep 0x1 [ 13.538021] usb 3-2: 2:1: cannot get freq at ep 0x1 [...] (full dmesg here: http

Yet another Seagate quirk for unusual_uas.h

2017-09-16 Thread Kris Lindgren
Hello all, I have a Seagate External HDD PN: 9sean2-500 that works fine on USB2.0 ports (and older kernels) however when connected to usb3.0 port on newer kernels, the drive fails any write access. dmesg [ 7232.155430] usb 1-1: new high-speed USB device number 3 using xhci_hcd [ 7232.366548] usb-

Re: Dell WD15 dock causes system freezes

2017-09-16 Thread Greg KH
On Sat, Sep 16, 2017 at 03:02:58PM +0200, Piotr Kołaczkowski wrote: > Hello! > > TL;DR: > I'm having troubles with Dell WD15 dock connected to USB-C of Dell > Precision 5520 laptop. > I'm seeing very frequent kernel freezes, sometimes panics, > particularly on logging into the desktop session. > I

Gadget mode advice sought

2017-09-16 Thread g4
Greetings, I'm trying to find the simplest way to develop a bulk mode gadget that exposes a standard userland IO interface. I've not been able to find anything suitable but if such a beast does exist please do point me in the right direction. Failing that please read on. The appliance collects da

Fibocom L831-EAU and cdc_mbim

2017-09-16 Thread Andreas Böhler
Hey, I recently bought a Thinkpad T470 notebook and added the Fibocom L831-EAU WWAN card. It's mbim-based, but unfortunately I can't get it to work correctly. In fact I'm experiencing similar issues to Patrick Chilton, who reported this behaviour a few months ago also on this list: https://ww

Dell WD15 dock causes system freezes

2017-09-16 Thread Piotr Kołaczkowski
Hello! TL;DR: I'm having troubles with Dell WD15 dock connected to USB-C of Dell Precision 5520 laptop. I'm seeing very frequent kernel freezes, sometimes panics, particularly on logging into the desktop session. I first created a ticket on Ubuntu Launchpad, but I have been directed to here. https

[PATCH 0/9 v2] usb: usb251xb: Add USB2517i hub support and fix some bugs

2017-09-16 Thread Serge Semin
Primarily it was intended to just add USB2517 hub support to the driver. But after tests a bug and inconistency were discovered. So it was decided to make the following changes: Changelog v1: - Add USB2517/i hub specifics support to the driver - Fix property_u32 NULL-pointer dereference - Add new

[PATCH 1/9 v2] usb: usb251xb: Add USB2517i specific struct and IDs

2017-09-16 Thread Serge Semin
There are USB2517 and USB2517i hubs, which have almost the same registers space as already supported USB251xbi series. The difference it in DIDs and in few functions. This patch adds the USB2517/i data structures to the driver, so it would have different setting depending on the device discovered o

[PATCH 3/9 v2] usb: usb251xb: Add 5,6,7 ports mapping def setting

2017-09-16 Thread Serge Semin
USB2517 got three additionl downstream ports, which can as well be mapped to another logical ports. USB2551xb driver currently doesn't fully support such setting configuration from dts file. This patch doesn't change this, but adds usb2517 spcific ports default liner mapping. Signed-off-by: Serge

[PATCH 2/9 v2] usb: usb251xb: Add USB251x specific port count setting

2017-09-16 Thread Serge Semin
USB251xb as well as USB2517 datasheet states, that all these hubs differ by number of ports declared as the last digit in the model name. So USB2512 got two ports, USB2513 - three, and so on. Such setting must be reflected in the device specific data structure and corresponding dts property should

[PATCH 5/9 v2] usb: usb251xb: Add battery enable setting flag

2017-09-16 Thread Serge Semin
Battery charging settings are supported by USB251xb hubs only. USB2517i isn't one of them. So we need to reflect it within the device-specific data structure. The driver doesn't support dts property to change this setting, but instead defaults it with zero. So the flag isn't used anywhere in the dr

[PATCH 4/9 v2] usb: usb251xb: Add 5,6,7 ports boost settings

2017-09-16 Thread Serge Semin
USB electrical signaling drive strength boost bit is also supported by USB2517 hub. Since it got three addition ports, the designers needed to add one more register for initialization. It turned out to be formerly reserved 0xF7. As before we just initialize it with default zeros. Signed-off-by: Se

[PATCH 9/9 v2] usb: usb251xb: Use GPIO descriptor consumer interface

2017-09-16 Thread Serge Semin
The driver used to be developed with legacy GPIO API support. It's better to use descriptor-based interface for several reasons. First of all the legacy API doesn't support the ACTIVE_LOW/HIGH flag of dts nodes, which is essential since different hardware may have different GPIOs connectivity inclu

[PATCH 7/9 v2] usb: usb251xb: Fix property_u32 NULL pointer dereference

2017-09-16 Thread Serge Semin
The methods like of_property_read_u32 utilizing the specified pointer permit only the pointer to a preallocated u32 storage as the third argument. As a result the driver crashes on NULL pointer dereference in case if "oc-delay-us" or "power-on-time-ms" declared in dts file. Signed-off-by: Serge Se

[PATCH 6/9 v2] usb: usb251xb: Add USB2517 LED settings

2017-09-16 Thread Serge Semin
USB2517 supports two LED modes: USB mode (default) and speed indication mode. The last one can be switched on by corresponding dts property. Since USB251xb hubs doesn't support LEDs settings, we need to ignore this setting. Signed-off-by: Serge Semin --- Documentation/devicetree/bindings/usb/usb

[PATCH 8/9 v2] usb: usb251xb: Add max power/current dts property support

2017-09-16 Thread Serge Semin
This parameters may be varied in accordance with hardware specifics. So lets add the corresponding settings to the usb251x driver dts specification. Signed-off-by: Serge Semin --- Documentation/devicetree/bindings/usb/usb251xb.txt | 6 ++ drivers/usb/misc/usb251xb.c