Modify

Opened 3 years ago

Last modified 17 months ago

#18369 new defect

CC r43224 / ARV752DPW22 / 2 of 3 USB ports doesn't work

Reported by: gho@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

Putting a device into the left and lower rear port doesn't show any reaction (either kernel log nor hotplug). The upper rear port (originally for a 3g dongle) does...

[30565.228000] usb 4-1: new full-speed USB device number 2 using ifxusb_hcd
[30565.452000] hub 4-1:1.0: USB hub found
[30565.460000] hub 4-1:1.0: 4 ports detected
root@OpenWrt:~# lsusb
Bus 004 Device 003: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Attachments (0)

Change History (18)

comment:1 Changed 3 years ago by blogic

uhci and ehci are loaded ?

comment:2 Changed 3 years ago by anonymous

root@OpenWrt:/proc# lsmod |grep hci
ehci_hcd               35323  2 ehci_pci
ehci_pci                2544  0
ehci_platform           2448  0
uhci_hcd               18992  0
root@OpenWrt:/proc# lsmod |grep usb
ledtrig_usbdev          1968  0
scsi_mod               86632  2 usb_storage
usb_storage            38168  0
usblp                   8832  0

comment:3 Changed 3 years ago by anonymous

root@OpenWrt:/proc# cat version
Linux version 3.14.18 (openwrt@gb-12) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r43224) ) #1 Sun Nov 9 19:51:55 UTC 2014
root@OpenWrt:/proc# cat cpuinfo
system type             : Danube rev 1.5
machine                 : ARV752DPW22 - Arcor 803

comment:4 Changed 3 years ago by gho@…

... the "Bus 001 Device 001" seems to be the hub with the two ports not working.

Two rear buttons ("Restart" and "?") are also functionless at the moment.

Image was build with Image Builder.

comment:5 Changed 3 years ago by anonymous

Hello folks... what can I further do to approach the problem?

comment:6 Changed 3 years ago by anonymous

Klog messages... "hub 4" is working, "hub 1" isn't...

root@OpenWrt:~# dmesg |grep -i -e hci -e usb -e hub
[    0.136000] usbcore: registered new interface driver usbfs
[    0.140000] usbcore: registered new interface driver hub
[    0.144000] usbcore: registered new device driver usb
[    6.016000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.024000] ehci-platform: EHCI generic platform driver
[    6.032000] ehci-pci: EHCI PCI platform driver
[    6.036000] ehci-pci 0000:00:0f.2: EHCI Host Controller
[    6.040000] ehci-pci 0000:00:0f.2: new USB bus registered, assigned bus number 1
[    6.048000] ehci-pci 0000:00:0f.2: irq 135, io mem 0x18010000
[    6.064000] ehci-pci 0000:00:0f.2: USB 2.0 started, EHCI 1.00
[    6.068000] hub 1-0:1.0: USB hub found
[    6.072000] hub 1-0:1.0: 4 ports detected
[    6.080000] uhci_hcd: USB Universal Host Controller Interface driver
[    6.084000] uhci_hcd 0000:00:0f.0: UHCI Host Controller
[    6.092000] uhci_hcd 0000:00:0f.0: new USB bus registered, assigned bus number 2
[    6.096000] uhci_hcd 0000:00:0f.0: irq 135, io base 0x1ae00000
[    6.104000] hub 2-0:1.0: USB hub found
[    6.108000] hub 2-0:1.0: 2 ports detected
[    6.112000] uhci_hcd 0000:00:0f.1: UHCI Host Controller
[    6.116000] uhci_hcd 0000:00:0f.1: new USB bus registered, assigned bus number 3
[    6.124000] uhci_hcd 0000:00:0f.1: irq 135, io base 0x1ae00020
[    6.132000] hub 3-0:1.0: USB hub found
[    6.136000] hub 3-0:1.0: 2 ports detected
[    6.144000] IFXUSB: ifxusb_hcd: version 3.2 B110801
[    6.652000] IFXUSB: USB core #0 soft-reset
[    6.856000] IFXUSB: USB core #0 soft-reset
[    6.860000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[    6.864000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 4
[    6.872000] ifxusb_hcd ifxusb_hcd: irq 62, io mem 0xbe101000
[    6.876000] IFXUSB: Mode Mismatch Interrupt: currently in Host mode
[    6.884000] IFXUSB: Mode Mismatch Interrupt: currently in Host mode
[    6.888000] IFXUSB: Init: Power Port (0)
[    6.896000] hub 4-0:1.0: USB hub found
[    6.900000] hub 4-0:1.0: 1 port detected
[    6.904000] ifxusb_hcd ifxusb_hcd: requested GPIO 208

comment:7 Changed 3 years ago by anonymous

#18287 sounds similar

comment:8 Changed 3 years ago by anonymous

So ifxusb works - ehci doesn't.

How can I get more log information from ehci driver?

comment:9 Changed 3 years ago by gho@…

dsdwn, can you confirm this issue?

comment:10 Changed 3 years ago by anonymous

I can confirm an issue, even with latest Chaos Calmer.

comment:11 Changed 3 years ago by anonymous

I have this router. I have compiled trunk in august 2014 and all usb ports worked. Trunk of Dec 2014 had this problem. Please advise if I can help pinpoint the probelm better. I have just bought two new routers like this and I am about to try installing the latest trunk on them. Will report later

comment:12 Changed 3 years ago by gho@…

Getting news on this with 15RC1 or latest trunk would be helpful.

comment:13 Changed 2 years ago by anonymous

On official 15.05 (r45767)

dmesg | grep uhci
[    6.140000] uhci_hcd: USB Universal Host Controller Interface driver
[    6.144000] uhci_hcd 0000:00:0f.0: init 0000:00:0f.0 fail, -16
[    6.148000] uhci_hcd: probe of 0000:00:0f.0 failed with error -16
[    6.156000] uhci_hcd 0000:00:0f.1: init 0000:00:0f.1 fail, -16
[    6.160000] uhci_hcd: probe of 0000:00:0f.1 failed with error -16
root@easybox:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102 Flash Drive / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Only port dedicated for modem (this on top of device) works. On 2nd easybox with 14.x on it lspci shows also usb 1.1 hubs.

comment:14 Changed 2 years ago by guraltsev

This is still the case in r48016. Can I do something to help?

comment:15 Changed 2 years ago by info@…

I can confirm an issue, but 0400-fix-IO_SPACE_LIMIT-constant.patch Ticket 20997 und 0401-fix-irq-chip-for-exins.patch​ Ticket 21318 resolve this problem.

All works (USB Port left):

root@trunk:~# dmesg | grep uhci
[    6.554693] uhci_hcd: USB Universal Host Controller Interface driver
[    6.559771] uhci_hcd 0000:00:0f.0: UHCI Host Controller
[    6.564717] uhci_hcd 0000:00:0f.0: new USB bus registered, assigned bus number 2
[    6.571903] uhci_hcd 0000:00:0f.0: irq 135, io base 0x1ae00000
[    6.587771] uhci_hcd 0000:00:0f.1: UHCI Host Controller
[    6.591793] uhci_hcd 0000:00:0f.1: new USB bus registered, assigned bus number 3
[    6.598958] uhci_hcd 0000:00:0f.1: irq 135, io base 0x1ae00020
root@trunk:~# lsusb
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@brother:~# dmesg | tail
[  151.894304] scsi 0:0:0:0: Direct-Access     Intenso  Business Line         PQ: 0 ANSI: 4
[  151.903233] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  154.112898] sd 0:0:0:0: [sda] 15257600 512-byte logical blocks: (7.81 GB/7.27 GiB)
[  154.120069] sd 0:0:0:0: [sda] Write Protect is off
[  154.123522] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[  154.130103] sd 0:0:0:0: [sda] No Caching mode page found
[  154.134018] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  154.148914]  sda: sda1
[  154.160267] sd 0:0:0:0: [sda] Attached SCSI removable disk
[  167.304156] usb 1-2: USB disconnect, device number 2
root@trunk:~#  uname -a
Linux trunk 4.1.13 #1 Sat Jan 2 11:26:55 CET 2016 mips GNU/Linux

comment:16 Changed 21 months ago by anonymous

Still an issue also with latest trunk (with output as in comment 13).

A very old ticket so it would be HIGHLY appreciated if this could be fixed finally.

comment:17 Changed 21 months ago by anonymous

As far as I can see, both patches fix bugs in the linux kernel and not OpenWrt specific bugs. The patches need to be send to the Linux MIPS mailinglist (since they touch the mips specific part of the kernel) for inclusion into the linux kernel.

If they are included in the linux kernel, they can be send as backport to the OpenWrt Development Mailinglist.

As long as the patch author doesn't go the outlined way, the bug will be presumably never fixed and it's required to apply the patches to OpenWrt and compile from source all the time.

comment:18 Changed 17 months ago by anonymous

Master branch of Linux/MIPS repository recently had some changes on irq.c that could finally address this issue.

https://git.linux-mips.org/cgit/ralf/linux.git/log/arch/mips/lantiq/irq.c

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.