Hello,
I have a custom ARM9 based board with usb host possibility. I’m trying to plug in a usb serial converter (PL2303) for testing. So far the device is registered but not to probed. Maybe that is something hotplug should be doing automatically(?). I have khub daemon running
Well, I switched on usb_debug (kernel 2.6.10) and here’s dmesg i got when I modprobed pl2303:
usbcore: registered new driver usbfs
usbcore: registered new driver hub
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbcore: registered new driver usbserial_generic
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for PL-2303
usbcore: registered new driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.12
2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (pxa27x)<7>block sizes: ed 64 td 64
Setting port 3 power failed.
ohci_hcd (pxa27x) at 0xc4860000, irq 3<6>pxa27x-ohci pxa27x-ohci: new USB bus registered, assigned bus number 1
pxa27x-ohci pxa27x-ohci: ohci_pxa27x_start, ohci:c0298038<7>pxa27x-ohci pxa27x-ohci: resetting from state 'reset', control = 0x0
pxa27x-ohci pxa27x-ohci: OHCI controller state
pxa27x-ohci pxa27x-ohci: OHCI 1.0, with legacy support registers
pxa27x-ohci pxa27x-ohci: control 0x083 HCFS=operational CBSR=3
pxa27x-ohci pxa27x-ohci: cmdstatus 0x00000 SOC=0
pxa27x-ohci pxa27x-ohci: intrstatus 0x00000044 RHSC SF
pxa27x-ohci pxa27x-ohci: intrenable 0x8000001a MIE UE RD WDH
pxa27x-ohci pxa27x-ohci: hcca frame #0009
pxa27x-ohci pxa27x-ohci: roothub.a 04000202 POTPGT=4 NPS NDP=2
pxa27x-ohci pxa27x-ohci: roothub.b 00000000 PPCM=0000 DR=0000
pxa27x-ohci pxa27x-ohci: roothub.status 00028002 OCIC DRWE OCI
pxa27x-ohci pxa27x-ohci: roothub.portstatus [0] 0x00010100 CSC PPS
pxa27x-ohci pxa27x-ohci: roothub.portstatus [1] 0x00000100 PPS
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: default language 0x0409
usb usb1: Product: PXA27x OHCI
usb usb1: Manufacturer: Linux 2.6.10 ohci_hcd
usb usb1: SerialNumber: pxa27x
usb usb1: hotplug
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: hotplug
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: global over-current protection
hub 1-0:1.0: power on to power good time: 8ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: over-current condition exists
pxa27x-ohci pxa27x-ohci: created debug files
hub 1-0:1.0: state 5 ports 2 chg ffff evt ffff
pxa27x-ohci pxa27x-ohci: GetStatus roothub.portstatus [0] = 0x00010100 CSC PPS
hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
<7>hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
hub 1-0:1.0: port 2, status 0100, change 0000, 12 Mb/s
hub 1-0:1.0: overcurrent change
<7>hub 1-0:1.0: state 5 ports 2 chg fffc evt 0001
Host controller ohci-hcd seems to be ok. When host driver is loaded the power is swithced on for short time (it can be seen by using usb mouse in port, the light flashes in mouse).
port 3 should not even be in use (ohci-pxa270.c taunts it).
PL-2303 converter works in Linux, I’ve tried that.
This is a bit new area for me so if you have ideas how to solve this I would appreciate that. Thanks.