Hi, On Tue, 2017-03-28 at 10:30 +0300, Mathias Nyman wrote: > Hi > > On 28.03.2017 05:35, Olivier Langlois wrote: > > Hardware: > > HP Spectre 13 > > http://h10032.www1.hp.com/ctg/Manual/c05228576.pdf > > > > Kernel version: > > 4.10.6 SMP PREEMPT x86_64 > > Is this a new issue? was it working on some other kernel? Sorry, I can't tell. This is a new computer on which I have replaced the shitty OS that comes preinstalled on it with Linux only last week. The only 2 kernel versions that I have tried are 4.10.5 and 4.10.6. What I'm reporting is the only behavior that I have experienced so far unfortunately. > > Odd that it tries to enumerate as high-speed. > > Might be because xHC controller is being hotplug added at device > connect, > and xhci driver adds USB2 hcd first, and usb3 hcd second. > > What happens if you first connect a high-speed USB device to the > first > Thunderbolt type-C Gen2 port, and then after a while when xhci driver > is > properly loaded plug in the SuperSpeed device to the second TB type-C > gen2 port? very interesting suggestion. high-speed device got managed correctly. Next, I plugged my LG G5 mobile phone in port 2 and I got the same weird behavior that I only get when I plug the phone on Thunderbolt: 1. It is not listed in lsusb output 2. The phone gets in a weird Firmware update mode that the only way to exit from is to unplug the battery as if the phone was receiving special USB signals Here is the dmesg output. I will do the exact asked scenario with a superspeed USB stick when I get a second USB-C to female regular USB adapter and report the result back. Inserting a high-speed in Thunderbold 3 port 1 then insert LG G5 mobile phone (might or might not be a superspeed device. Not sure about that. I'm not USB expert like you guys) in Thunderbolt 3 port 2: [114044.935417] pci 0000:01:00.0: [8086:1578] type 01 class 0x060400 [114044.935540] pci 0000:01:00.0: supports D1 D2 [114044.935541] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold [114044.935643] pci 0000:01:00.0: System wakeup disabled by ACPI [114044.937874] pci 0000:02:00.0: [8086:1578] type 01 class 0x060400 [114044.937995] pci 0000:02:00.0: supports D1 D2 [114044.937996] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold [114044.938099] pci 0000:02:01.0: [8086:1578] type 01 class 0x060400 [114044.938223] pci 0000:02:01.0: supports D1 D2 [114044.938225] pci 0000:02:01.0: PME# supported from D0 D1 D2 D3hot D3cold [114044.938326] pci 0000:02:02.0: [8086:1578] type 01 class 0x060400 [114044.938469] pci 0000:02:02.0: supports D1 D2 [114044.938470] pci 0000:02:02.0: PME# supported from D0 D1 D2 D3hot D3cold [114044.938577] pci 0000:02:04.0: [8086:1578] type 01 class 0x060400 [114044.938834] pci 0000:02:04.0: supports D1 D2 [114044.938835] pci 0000:02:04.0: PME# supported from D0 D1 D2 D3hot D3cold [114044.938962] pci 0000:01:00.0: PCI bridge to [bus 02-6b] [114044.938973] pci 0000:01:00.0: bridge window [mem 0xb0000000- 0xde0fffff] [114044.938979] pci 0000:01:00.0: bridge window [mem 0x50000000- 0x99ffffff 64bit pref] [114044.939038] pci 0000:02:00.0: PCI bridge to [bus 03] [114044.939047] pci 0000:02:00.0: bridge window [mem 0xde000000- 0xde0fffff] [114044.939107] pci 0000:02:01.0: PCI bridge to [bus 04-36] [114044.939116] pci 0000:02:01.0: bridge window [mem 0xb0000000- 0xc7efffff] [114044.939123] pci 0000:02:01.0: bridge window [mem 0x50000000- 0x6fffffff 64bit pref] [114044.939206] pci 0000:37:00.0: [8086:15b6] type 00 class 0x0c0330 [114044.939230] pci 0000:37:00.0: reg 0x10: [mem 0xc7f00000-0xc7f0ffff] [114044.939409] pci 0000:37:00.0: supports D1 D2 [114044.939410] pci 0000:37:00.0: PME# supported from D0 D1 D2 D3hot D3cold [114044.939551] pci 0000:02:02.0: PCI bridge to [bus 37] [114044.939560] pci 0000:02:02.0: bridge window [mem 0xc7f00000- 0xc7ffffff] [114044.939628] pci 0000:02:04.0: PCI bridge to [bus 38-6b] [114044.939638] pci 0000:02:04.0: bridge window [mem 0xc8000000- 0xddffffff] [114044.939644] pci 0000:02:04.0: bridge window [mem 0x70000000- 0x99ffffff 64bit pref] [114044.939676] pci_bus 0000:02: Allocating resources [114044.939711] pci 0000:02:01.0: bridge window [io 0x1000-0x0fff] to [bus 04-36] add_size 1000 [114044.939729] pci 0000:02:04.0: bridge window [io 0x1000-0x0fff] to [bus 38-6b] add_size 1000 [114044.939739] pci 0000:02:01.0: res[13]=[io 0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000 [114044.939741] pci 0000:02:04.0: res[13]=[io 0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000 [114044.939743] pci 0000:01:00.0: bridge window [io 0x1000-0x0fff] to [bus 02-6b] add_size 2000 [114044.939745] pci 0000:01:00.0: res[13]=[io 0x1000-0x0fff] res_to_dev_res add_size 2000 min_align 1000 [114044.939747] pci 0000:01:00.0: res[13]=[io 0x1000-0x2fff] res_to_dev_res add_size 2000 min_align 1000 [114044.939749] pci 0000:01:00.0: BAR 13: no space for [io size 0x2000] [114044.939751] pci 0000:01:00.0: BAR 13: failed to assign [io size 0x2000] [114044.939752] pci 0000:01:00.0: BAR 13: no space for [io size 0x2000] [114044.939754] pci 0000:01:00.0: BAR 13: failed to assign [io size 0x2000] [114044.939756] pci 0000:02:01.0: res[13]=[io 0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000 [114044.939758] pci 0000:02:01.0: res[13]=[io 0x1000-0x1fff] res_to_dev_res add_size 1000 min_align 1000 [114044.939759] pci 0000:02:04.0: res[13]=[io 0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000 [114044.939761] pci 0000:02:04.0: res[13]=[io 0x1000-0x1fff] res_to_dev_res add_size 1000 min_align 1000 [114044.939762] pci 0000:02:01.0: BAR 13: no space for [io size 0x1000] [114044.939762] pci 0000:02:01.0: BAR 13: failed to assign [io size 0x1000] [114044.939763] pci 0000:02:04.0: BAR 13: no space for [io size 0x1000] [114044.939764] pci 0000:02:04.0: BAR 13: failed to assign [io size 0x1000] [114044.939766] pci 0000:02:04.0: BAR 13: no space for [io size 0x1000] [114044.939767] pci 0000:02:04.0: BAR 13: failed to assign [io size 0x1000] [114044.939768] pci 0000:02:01.0: BAR 13: no space for [io size 0x1000] [114044.939769] pci 0000:02:01.0: BAR 13: failed to assign [io size 0x1000] [114044.939770] pci 0000:02:00.0: PCI bridge to [bus 03] [114044.939776] pci 0000:02:00.0: bridge window [mem 0xde000000- 0xde0fffff] [114044.939786] pci 0000:02:01.0: PCI bridge to [bus 04-36] [114044.939791] pci 0000:02:01.0: bridge window [mem 0xb0000000- 0xc7efffff] [114044.939795] pci 0000:02:01.0: bridge window [mem 0x50000000- 0x6fffffff 64bit pref] [114044.939801] pci 0000:02:02.0: PCI bridge to [bus 37] [114044.939806] pci 0000:02:02.0: bridge window [mem 0xc7f00000- 0xc7ffffff] [114044.939815] pci 0000:02:04.0: PCI bridge to [bus 38-6b] [114044.939820] pci 0000:02:04.0: bridge window [mem 0xc8000000- 0xddffffff] [114044.939824] pci 0000:02:04.0: bridge window [mem 0x70000000- 0x99ffffff 64bit pref] [114044.939830] pci 0000:01:00.0: PCI bridge to [bus 02-6b] [114044.939835] pci 0000:01:00.0: bridge window [mem 0xb0000000- 0xde0fffff] [114044.939839] pci 0000:01:00.0: bridge window [mem 0x50000000- 0x99ffffff 64bit pref] [114044.941229] xhci_hcd 0000:37:00.0: xHCI Host Controller [114044.941236] xhci_hcd 0000:37:00.0: new USB bus registered, assigned bus number 3 [114044.942618] xhci_hcd 0000:37:00.0: hcc params 0x200077c1 hci version 0x110 quirks 0x00009810 [114044.942890] hub 3-0:1.0: USB hub found [114044.942900] hub 3-0:1.0: 2 ports detected [114044.943501] xhci_hcd 0000:37:00.0: xHCI Host Controller [114044.943505] xhci_hcd 0000:37:00.0: new USB bus registered, assigned bus number 4 [114044.943684] hub 4-0:1.0: USB hub found [114044.943693] hub 4-0:1.0: 2 ports detected [114045.294163] usb 3-1: new high-speed USB device number 2 using xhci_hcd [114045.459884] usb-storage 3-1:1.0: USB Mass Storage device detected [114045.460169] scsi host2: usb-storage 3-1:1.0 [114046.525438] scsi 2:0:0:0: Direct-Access Multi Flash Reader 1.00 PQ: 0 ANSI: 0 [114047.113076] sd 2:0:0:0: [sda] 3994624 512-byte logical blocks: (2.05 GB/1.90 GiB) [114047.113563] sd 2:0:0:0: [sda] Write Protect is off [114047.113569] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00 [114047.114129] sd 2:0:0:0: [sda] No Caching mode page found [114047.114152] sd 2:0:0:0: [sda] Assuming drive cache: write through [114047.120191] sda: sda1 [114047.122726] sd 2:0:0:0: [sda] Attached SCSI removable disk [114053.067717] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [114129.453418] usb 3-2: new high-speed USB device number 3 using xhci_hcd [114141.743520] usb 3-2: new high-speed USB device number 4 using xhci_hcd > > Thomas Reifferscheid reported a similar issue recently. His device > got > detected as both high and superspeed at the same time if it was > connected > during boot > http://marc.info/?l=linux-usb&m=148897296702314&w=2 > > He listed 3 workarounds, but I haven't yet had time to get into this > issue in detail. > > -Mathias > -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html