Score:0

Disable power cycling on usb device error

cn flag

I'm developing an usb full speed device. I'm debugging it directly connected to my workstation. When the device microcontroller is halting on a breakpoint or is being resetted, sometimes the errors that are rised on usb host makes the system powercycle the port and that breaks up my whole usb subsystem. Don't know if it is an driver issue or/and a hardware one. Is there a way to easily disable this behaviour and/or fix this issue?

Thanks!

[35993.798183] usb 3-4: new full-speed USB device number 21 using xhci_hcd
[35997.815678] usb 3-4: New USB device found, idVendor=1b39, idProduct=0014, bcdDevice= 2.00
[35997.815683] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[35997.815685] usb 3-4: Product: ET100
[35997.815686] usb 3-4: Manufacturer: ET
[35997.815687] usb 3-4: SerialNumber: 206137824753
[35998.162404] usb 3-4: reset full-speed USB device number 21 using xhci_hcd
[36055.230701] usb 3-4: USB disconnect, device number 21
[36056.663042] usb 3-4: new full-speed USB device number 22 using xhci_hcd
[36072.115273] usb 3-4: device descriptor read/64, error -110
[36087.731469] usb 3-4: device descriptor read/64, error -110
[36087.967460] usb 3-4: new full-speed USB device number 23 using xhci_hcd
[36103.347723] usb 3-4: device descriptor read/64, error -110
[36118.963895] usb 3-4: device descriptor read/64, error -110
[36119.071917] usb usb3-port4: attempt power cycle
[36119.487895] usb 3-4: new full-speed USB device number 24 using xhci_hcd
[36129.724025] xhci_hcd 0000:00:14.0: Abort failed to stop command ring: -110
[36129.724040] xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead
[36129.724097] xhci_hcd 0000:00:14.0: HC died; cleaning up
[36129.724197] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[36129.724260] cp210x ttyUSB0: failed get req 0x8 size 1 status: -108
[36129.724273] usb 4-5: USB disconnect, device number 2
[36130.308035] usb 3-4: device not accepting address 24, error -108
[36130.308069] usb usb3-port4: couldn't allocate usb_device
[36130.308078] usb 3-1: USB disconnect, device number 2
[36130.724563] cp210x ttyUSB0: failed get req 0x8 size 1 status: -19
[36131.725638] cp210x ttyUSB0: failed get req 0x8 size 1 status: -19
[36132.140415] usb 3-2: USB disconnect, device number 3
[36132.186577] usb 3-3: USB disconnect, device number 4
[36132.186583] usb 3-3.1: USB disconnect, device number 14
[36132.186586] usb 3-3.1.1: USB disconnect, device number 15
[36132.186725] usb 3-3.1.2: USB disconnect, device number 16
[36132.260427] usb 3-3.1.4: USB disconnect, device number 17
[36132.261080] usb 3-3.2: USB disconnect, device number 8
[36132.261425] usb 3-3.4: USB disconnect, device number 11
[36132.261485] cp210x ttyUSB0: failed set request 0x7 status: -19
[36132.261490] cp210x ttyUSB0: failed set request 0x12 status: -19
[36132.261493] cp210x ttyUSB0: failed set request 0x0 status: -19
[36132.261546] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[36132.261605] cp210x 3-3.4:1.0: device disconnected
[36132.261903] usb 3-6: USB disconnect, device number 7
[36132.380272] usb 3-11: USB disconnect, device number 10
damiano@damiano-PC:~$ lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 05)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 770] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
03:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 03)

Thanks

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.