LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Kernel
  • Assigned To No-one
  • Operating System All
  • Severity High
  • Priority Very Low
  • Reported Version All
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: LEDE Project
Opened by Nikolay Stoyanov - 20.04.2017

FS#726 - USB not working on TL-WDR4900 v1.x

USB ports are empty but hub is deteched periodically. Usb ports work abnormal when some devices are inserted.
This bug exists inprevious versions ( in openwrt too).

cat /etc/banner

   _________
  /        /\      _    ___ ___  ___
 /  LE    /  \    | |  | __|   \| __|
/    DE  /    \   | |__| _|| |) | _|

// LE \ ||_|_/|_| lede-project.org
\ \ DE /
\ LE \ / ———————————————————– \ DE \ / Reboot (17.01.1, r3316-7eb58cf109)
\
__\/ ———————————————————–

root@openwrt:~# dmesg | grep -i usb

[ 0.029483] usbcore: registered new interface driver usbfs
[ 0.029537] usbcore: registered new interface driver hub
[ 0.029580] usbcore: registered new device driver usb
[ 2.075954] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.104850] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
[ 2.138024] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
[ 2.144048] hub 1-0:1.0: USB hub found
[ 2.535450] usb 1-1: new high-speed USB device number 2 using fsl-ehci
[ 2.728493] hub 1-1:1.0: USB hub found
[ 3.511480] usb 1-1: USB disconnect, device number 2
[ 3.814034] usb 1-1: new high-speed USB device number 3 using fsl-ehci
[ 3.952117] hub 1-1:1.0: USB hub found
[ 4.484403] usb 1-1: USB disconnect, device number 3
[ 4.730021] usb 1-1: new high-speed USB device number 4 using fsl-ehci
[ 4.868111] hub 1-1:1.0: USB hub found
[ 5.265649] usb 1-1: USB disconnect, device number 4
[ 5.510021] usb 1-1: new high-speed USB device number 5 using fsl-ehci
[ 6.098025] usb 1-1: device not accepting address 5, error -71
[ 6.398018] usb 1-1: new high-speed USB device number 7 using fsl-ehci
[ 6.536098] hub 1-1:1.0: USB hub found
[ 6.844167] usb 1-1: USB disconnect, device number 7
[ 7.110026] usb 1-1: new high-speed USB device number 8 using fsl-ehci
[ 7.706027] usb 1-1: device not accepting address 8, error -71
[ 8.010025] usb 1-1: new high-speed USB device number 10 using fsl-ehci
[ 8.156084] hub 1-1:1.0: USB hub found
[ 8.417000] usb 1-1: USB disconnect, device number 10
..........................
Thu Apr 20 10:41:22 2017 kern.info kernel: [ 961.300660] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:41:47 2017 kern.info kernel: [ 986.577885] usb 1-1: USB disconnect, device number 124
Thu Apr 20 10:41:47 2017 kern.info kernel: [ 986.821924] usb 1-1: new high-speed USB device number 125 using fsl-ehci
Thu Apr 20 10:41:48 2017 kern.info kernel: [ 986.960029] hub 1-1:1.0: USB hub found
Thu Apr 20 10:41:48 2017 kern.info kernel: [ 986.964202] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:41:53 2017 kern.info kernel: [ 991.933221] usb 1-1: USB disconnect, device number 125
Thu Apr 20 10:41:53 2017 kern.info kernel: [ 992.177825] usb 1-1: new high-speed USB device number 126 using fsl-ehci
Thu Apr 20 10:41:53 2017 kern.info kernel: [ 992.315980] hub 1-1:1.0: USB hub found
Thu Apr 20 10:41:53 2017 kern.info kernel: [ 992.320159] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:42:02 2017 kern.info kernel: [ 1001.763764] usb 1-1: USB disconnect, device number 126
Thu Apr 20 10:42:03 2017 kern.info kernel: [ 1002.009660] usb 1-1: new high-speed USB device number 127 using fsl-ehci
Thu Apr 20 10:42:03 2017 kern.info kernel: [ 1002.159774] hub 1-1:1.0: USB hub found
Thu Apr 20 10:42:03 2017 kern.info kernel: [ 1002.163953] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:42:07 2017 kern.info kernel: [ 1006.033730] usb 1-1: USB disconnect, device number 127
Thu Apr 20 10:42:07 2017 kern.info kernel: [ 1006.281597] usb 1-1: new high-speed USB device number 2 using fsl-ehci
Thu Apr 20 10:42:07 2017 kern.info kernel: [ 1006.419736] hub 1-1:1.0: USB hub found
Thu Apr 20 10:42:07 2017 kern.info kernel: [ 1006.423795] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:42:10 2017 kern.info kernel: [ 1009.824073] usb 1-1: USB disconnect, device number 2
Thu Apr 20 10:42:11 2017 kern.info kernel: [ 1010.076110] usb 1-1: new high-speed USB device number 3 using fsl-ehci
Thu Apr 20 10:42:11 2017 kern.info kernel: [ 1010.215709] hub 1-1:1.0: USB hub found
Thu Apr 20 10:42:11 2017 kern.info kernel: [ 1010.220010] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:42:12 2017 kern.info kernel: [ 1011.588932] usb 1-1: USB disconnect, device number 3
Thu Apr 20 10:42:12 2017 kern.info kernel: [ 1011.833503] usb 1-1: new high-speed USB device number 4 using fsl-ehci

cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 1, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 4.04
S: Manufacturer=Linux 4.4.61 ehci_hcd
S: Product=Freescale On-Chip EHCI Host Controller
S: SerialNumber=fsl-ehci.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 45 Spd=480 MxCh= 4
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=05e3 ProdID=0608 Rev=85.36
S: Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms

lsusb -v

Bus 001 Device 048: ID 05e3:0608 Genesys Logic, Inc. Hub
Device Descriptor:

bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         1 Single TT
bMaxPacketSize0        64
idVendor           0x05e3 Genesys Logic, Inc.
idProduct          0x0608 Hub
bcdDevice           85.36
iManufacturer           0 
iProduct                1 USB2.0 Hub
iSerial                 0 
bNumConfigurations      1
Configuration Descriptor:
  bLength                 9
  bDescriptorType         2
  wTotalLength           25
  bNumInterfaces          1
  bConfigurationValue     1
  iConfiguration          0 
  bmAttributes         0xe0
    Self Powered
    Remote Wakeup
  MaxPower              100mA
  Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           1
    bInterfaceClass         9 Hub
    bInterfaceSubClass      0 Unused
    bInterfaceProtocol      0 Full speed (or root) hub
    iInterface              0 
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x81  EP 1 IN
      bmAttributes            3
        Transfer Type            Interrupt
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0001  1x 1 bytes
      bInterval              12

Hub Descriptor:

bLength               9
bDescriptorType      41
nNbrPorts             4
wHubCharacteristic 0x00e9
  Per-port power switching
  Per-port overcurrent protection
  TT think time 32 FS bits
  Port indicators
bPwrOn2PwrGood       50 * 2 milli seconds
bHubContrCurrent    100 milli Ampere
DeviceRemovable    0x00
PortPwrCtrlMask    0xff

Hub Port Status:

 Port 1: 0000.0100 power
 Port 2: 0000.0100 power
 Port 3: 0000.0100 power
 Port 4: 0000.0100 power

Device Qualifier (for other device speed):

bLength                10
bDescriptorType         6
bcdUSB               2.00
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         0 Full speed (or root) hub
bMaxPacketSize0        64
bNumConfigurations      1

Device Status: 0x0001

Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:

bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         1 Single TT
bMaxPacketSize0        64
idVendor           0x1d6b Linux Foundation
idProduct          0x0002 2.0 root hub
bcdDevice            4.04
iManufacturer           3 Linux 4.4.61 ehci_hcd
iProduct                2 Freescale On-Chip EHCI Host Controller
iSerial                 1 fsl-ehci.0
bNumConfigurations      1
Configuration Descriptor:
  bLength                 9
  bDescriptorType         2
  wTotalLength           25
  bNumInterfaces          1
  bConfigurationValue     1
  iConfiguration          0 
  bmAttributes         0xe0
    Self Powered
    Remote Wakeup
  MaxPower                0mA
  Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           1
    bInterfaceClass         9 Hub
    bInterfaceSubClass      0 Unused
    bInterfaceProtocol      0 Full speed (or root) hub
    iInterface              0 
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x81  EP 1 IN
      bmAttributes            3
        Transfer Type            Interrupt
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0004  1x 4 bytes
      bInterval              12

Hub Descriptor:

bLength               9
bDescriptorType      41
nNbrPorts             1
wHubCharacteristic 0x0009
  Per-port power switching
  Per-port overcurrent protection
  TT think time 8 FS bits
bPwrOn2PwrGood       10 * 2 milli seconds
bHubContrCurrent      0 milli Ampere
DeviceRemovable    0x00
PortPwrCtrlMask    0xff

Hub Port Status:

 Port 1: 0000.0503 highspeed power enable connect

Device Status: 0x0001

Self Powered

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing