USB on 8250 PCI
anyone have tested USB host controller on pci with mpc8250 i have NEC PD720101 ohci/ehci device
i have no response from usb devices
any hints?
Quoted 2 lines · Wojciech Kromer
anyone have tested USB host controller on pci with mpc8250 i have NEC PD720101 ohci/ehci device
yes, mpc8270 with Philips 1561
(I found the CPM USB host controller with 1 ms SOF under software control too risky)
the 1561 is OHCI/EHCI compliant, the standard linux drivers can be used
Quoted 10 lines
i have no response from usb devices
any hints?_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
i still can't figure out is it a hardware or configuration problem, i can see all registers, drivers seems to work,
it can detect device insert
but there is no data transmision
there are also no interrupts,
i'm not sure what to write in interrupt_line in PCI config space
any hints?
=============================================================
here is my dmesg part:
ehci_hcd 00:1e.2: PCI device 1033:00e0ehci_hcd 00:1e.2: irq -20, pci mem c924b000usb.c: new USB bus registered, assigned bus number 1ehci_hcd 00:1e.2: ehci_start hcs_params 0x2385 dbg=0 cc=2 pcc=3 !ppc ports=5 ehci_hcd 00:1e.2: ehci_start portroute 1 0 1 0 0ehci_hcd 00:1e.2: ehci_start hcc_params e806 thresh 0 uframes 256/512/1024 park ehci_hcd 00:1e.2: capability 0001 at e8ehci_hcd 00:1e.2: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
PCI: 00:1e.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, correcting to 32 ehci_hcd 00:1e.2: init command 010b09 park=3 ithresh=1 period=256 RUN ehci_hcd 00:1e.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4 hcd.c: 00:1e.2 root hub device address 1usb.c: kmalloc IF c727f340, numif 1usb.c: new device strings: Mfr=3, Product=2, SerialNumber=1usb.c: USB device number 1 default language ID 0x0
Manufacturer: Linux 2.4.19-dgt ehci_hcd
Product: PCI device 1033:00e0
SerialNumber: 00:1e.2hub.c: USB hub foundhub.c: 5 ports detectedhub.c: standalone hubhub.c: ganged power switchinghub.c: individual port over-current protectionhub.c: Single TThub.c: TT requires at most 8 FS bit timeshub.c: Port indicators are not supportedhub.c: power on to power good time: 0mshub.c: hub controller current requirement: 0mAhub.c: port removable status: RRRRRhub.c: local power source is goodhub.c: no over-current condition existshub.c: enabling power on all portsusb.c: hub driver claimed interface c727f340ehci_hcd 00:1e.2: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT hub.c: port 1, portstatus 501, change 1, 480 Mb/shub.c: port 1 connection changehub.c: port 1, portstatus 501, change 1, 480 Mb/shub.c: port 1, portstatus 501, change 0, 480 Mb/shub.c: port 1, portstatus 501, change 0, 480 Mb/shub.c: port 1, portstatus 501, change 0, 480 Mb/shub.c: port 1, portstatus 501, change 0, 480 Mb/shub.c: port 1, portstatus 511, change 0, 480 Mb/shub.c: port 1 of hub 1 not reset yet, waiting 10mshub.c: port 1, portstatus 511, change 0, 480 Mb/shub.c: port 1 of hub 1 not reset yet, waiting 10msehci_hcd 00:1e.2: port 1 full speed --> companionehci_hcd 00:1e.2: GetStatus port 1 status 003801 POWER OWNER sig=j CONNECT hub.c: port 1, portstatus 0, change 10, 12 Mb/sehci_hcd 00:1e.2: free_config devnum 0hub.c: port 2, portstatus 100, change 0, 12 Mb/shub.c: port 3, portstatus 100, change 0, 12 Mb/shub.c: port 4, portstatus 100, change 0, 12 Mb/shub.c: port 5, portstatus 100, change 0, 12 Mb/s
What kernel version do you use?
In a 2.4 series kernel, you might check m8260_pcibios_fixup() and probably set dev->irq ?
I don't know yet if this is the same in 2.6. I recently saw a lot of pci setup related changes in this mailing list.
Jaap-Jan
Quoted 72 lines · Wojciech Kromer
i still can't figure out is it a hardware or configuration problem, i can see all registers, drivers seems to work,
it can detect device insert
but there is no data transmisionthere are also no interrupts,
i'm not sure what to write ininterrupt_linein PCI config spaceany hints?
=============================================================
here is my dmesg part:
ehci_hcd00:1e.2: PCI device 1033:00e0ehci_hcd00:1e.2: irq -20, pci memc924b000usb.c: new USB bus registered, assigned bus number 1ehci_hcd00:1e.2:ehci_starthcs_params0x2385dbg=0 cc=2 pcc=3 !ppc ports=5ehci_hcd00:1e.2:ehci_startportroute 1 0 1 0 0ehci_hcd00:1e.2:ehci_starthcc_paramse806 thresh 0 uframes 256/512/1024 parkehci_hcd00:1e.2: capability 0001 at e8ehci_hcd00:1e.2: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
PCI: 00:1e.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, correcting to 32ehci_hcd00:1e.2: init command 010b09 park=3 ithresh=1 period=256 RUNehci_hcd00:1e.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4hcd.c: 00:1e.2 root hub device address 1usb.c: kmalloc IFc727f340, numif 1usb.c: new device strings: Mfr=3, Product=2, SerialNumber=1usb.c: USB device number 1 default language ID0x0
Manufacturer: Linux 2.4.19-dgtehci_hcd
Product: PCI device 1033:00e0
SerialNumber: 00:1e.2hub.c: USB hub foundhub.c: 5 ports detectedhub.c: standalone hubhub.c: ganged power switchinghub.c: individual port over-current protectionhub.c: Single TThub.c: TT requires at most 8 FS bit timeshub.c: Port indicators are not supportedhub.c: power on to power good time: 0mshub.c: hub controller current requirement: 0mAhub.c: port removable status: RRRRRhub.c: local power source is goodhub.c: no over-current condition existshub.c: enabling power on all portsusb.c: hub driver claimed interfacec727f340ehci_hcd00:1e.2: GetStatus port 1 status 001803 POWER sig=j CSC CONNECThub.c: port 1, portstatus 501, change 1, 480 Mb/shub.c: port 1 connection changehub.c: port 1, portstatus 501, change 1, 480 Mb/shub.c: port 1, portstatus 501, change 0, 480 Mb/shub.c: port 1, portstatus 501, change 0, 480 Mb/shub.c: port 1, portstatus 501, change 0, 480 Mb/shub.c: port 1, portstatus 501, change 0, 480 Mb/shub.c: port 1, portstatus 511, change 0, 480 Mb/shub.c: port 1 of hub 1 not reset yet, waiting 10mshub.c: port 1, portstatus 511, change 0, 480 Mb/shub.c: port 1 of hub 1 not reset yet, waiting 10msehci_hcd00:1e.2: port 1 full speed --> companionehci_hcd00:1e.2: GetStatus port 1 status 003801 POWER OWNER sig=j CONNECThub.c: port 1, portstatus 0, change 10, 12 Mb/sehci_hcd00:1e.2:free_configdevnum 0hub.c: port 2, portstatus 100, change 0, 12 Mb/shub.c: port 3, portstatus 100, change 0, 12 Mb/shub.c: port 4, portstatus 100, change 0, 12 Mb/shub.c: port 5, portstatus 100, change 0, 12 Mb/s_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 8 lines · Użytkownik Jaap-Jan Boor
What kernel version do you use?
In a 2.4 series kernel, you might checkm8260_pcibios_fixup()and probably setdev->irq?I don't know yet if this is the same in 2.6. I recently saw a lot of pci setup related changes in this mailing list.
Jaap-Jan
i'm using 2.4.19 and 2.4.25 usb code
irqs, and io maps are set correctly
when trying to use ohci code there is one interrupt at startup:
<3>usb-ohci.c: OHCI Unrecoverable Error, controller usb-00:1e.0
anyone knows, what does it mean?
i've modified code to ignore it...