[HD2 General] liiochen:
Hi everyone:

I debugging the kernel with 2.6.32 (tytung ICS) and find some about usb-host problem. I think that may be ehci-hcd interrupt handler is not completed.Can someone help me confirm?

My debugging log:

<7>[ 130.474761] hub 1-0:1.0: urb -> hub irq called
<7>[ 130.474792] msm_hsusb_host msm_hsusb_host.0: suspend root hub
<7>[ 130.516418] msm_hsusb_host msm_hsusb_host.0: resume root hub after power loss
<7>[ 130.553070] hub 1-0:1.0: hub_resume
<7>[ 130.553100] hub 1-0:1.0: hub init 1.
<7>[ 130.553192] hub 1-0:1.0: usb port status = 0, ret: 0, change: 0
<7>[ 130.553222] hub 1-0:1.0: submit the urb.
<7>[ 130.556976] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
<7>[ 130.557098] hub 1-0:1.0: pre for loop i=1, i<=1.
<7>[ 130.557159] hub 1-0:1.0: hub no event and not connect_change.
<7>[ 130.557250] hub 1-0:1.0: hub port nothing todo.

the hub's event bit is not set? look this:

<7>[ 130.557159] hub 1-0:1.0: hub no event and not connect_change.

I think it's because the devices status code invalid (NULL) . usb conntroller (MSM7201) is not response any. look this:

<7>[ 130.556976] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000

I sorry , my english is too bad!!:p

full log:

> localhost dropbear # dmesg | grep -i usb && dmesg | grep -ehci && dmesg |
> grep -i hub
> <6>[ 1.294158] usbcore: registered new interface driver usbfs
> <6>[ 1.294281] usbcore: registered new interface driver hub
> <6>[ 1.294403] usbcore: registered new device driver usb
> <6>[ 1.956756] [USB] msm_hsusb_set_vbus_state: 1
> <5>[ 3.070129] usbmon: debugfs is not available
> <6>[ 3.070159] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> <6>[ 3.070312] [USB] initializing MSM7201 USB Controller
> <6>[ 3.087585] [USB] MSM7201 --> last initializing...
> <6>[ 3.087615] msm_hsusb_host msm_hsusb_host.0: Qualcomm MSM7201 On-Chip
> EHCI Host Controller
> <7>[ 3.087707] drivers/usb/core/inode.c: creating file 'devices'
> <7>[ 3.087799] drivers/usb/core/inode.c: creating file '001'
> <6>[ 3.087829] msm_hsusb_host msm_hsusb_host.0: new USB bus registered,
> assigned bus number 1
> <7>[ 3.087890] msm_hsusb_host msm_hsusb_host.0: reset command 080002
> (park)=0 ithresh=8 period=1024 Reset HALT
> <7>[ 3.088256] msm_hsusb_host msm_hsusb_host.0: park 0
> <7>[ 3.088287] msm_hsusb_host msm_hsusb_host.0: reset command 080b02
> park=3 ithresh=8 period=1024 Reset HALT
> <6>[ 3.088317] msm_hsusb_phy_reset
> <7>[ 3.147552] msm_hsusb_host msm_hsusb_host.0: ...powerdown ports...
> <6>[ 3.177581] msm_hsusb_host msm_hsusb_host.0: irq 58, io mem 0xa0800000
> <7>[ 3.197631] usb usb1: default language 0x0409
> <7>[ 3.197692] usb usb1: udev 1, busnum 1, minor = 0
> <6>[ 3.197723] usb usb1: New USB device found, idVendor=1d6b,
> idProduct=0002
> <6>[ 3.197753] usb usb1: New USB device strings: Mfr=3, Product=2,
> SerialNumber=1
> <6>[ 3.197784] usb usb1: Product: Qualcomm MSM7201 On-Chip EHCI Host
> Controller
> <6>[ 3.197814] usb usb1: Manufacturer: Linux 2.6.32-ics_ultrakernel_1.0
> ehci_hcd
> <6>[ 3.197845] usb usb1: SerialNumber: msm_hsusb_host.0
> <7>[ 3.198150] usb usb1: uevent
> <7>[ 3.198211] usb usb1: usb_probe_device
> <6>[ 3.198242] usb usb1: configuration #1 chosen from 1 choice
> <7>[ 3.198303] usb usb1: adding 1-0:1.0 (config #1, interface 0)
> <7>[ 3.198394] usb 1-0:1.0: uevent
> <7>[ 3.198455] hub 1-0:1.0: usb_probe_interface
> <7>[ 3.198486] hub 1-0:1.0: usb_probe_interface - got id
> <6>[ 3.198516] hub 1-0:1.0: USB hub found
> <6>[ 3.198547] hub 1-0:1.0: USB high speed hubs: 1
> <7>[ 3.199096] drivers/usb/core/inode.c: creating file '001'
> <7>[ 3.199127] usb usb1: device added!
> <6>[ 3.199218] [USB] MSM7201 --> host-success done with irq = 58.
> <6>[ 3.199371] Initializing USB Mass Storage driver...
> <6>[ 3.199523] usbcore: registered new interface driver usb-storage
> <6>[ 3.199554] USB Mass Storage support registered.
> <6>[ 3.199645] usbcore: registered new interface driver libusual
> <6>[ 3.199737] [USB] msm72k_probe
> <6>[ 3.199768] [USB] accessory detect 0
> <6>[ 3.199798] [USB] id_pin_gpio 0
> <6>[ 3.199798] [USB] dock detect 0
> <6>[ 3.199829] [USB] dock pin gpio 0
> <6>[ 3.199890] [USB] msm72k_probe() io=d086c000, irq=58,
> dma=ffa51000(212e9000)
> <6>[ 3.199951] [USB] usb_free(-16)
> <4>[ 3.200012] msm_hsusb: probe of msm_hsusb failed with error -16
> <6>[ 3.200347] android_register_function usb_mass_storage
> <7>[ 3.297607] hub 1-0:1.0: usb port status = 0, ret: 0, change: 0
> <6>[ 3.645263] usbcore: registered new interface driver usbhid
> <6>[ 3.645294] usbhid: v2.6:USB HID core driver
> <7>[ 3.670288] usb usb1: uevent
> <7>[ 3.670623] usb 1-0:1.0: uevent
> <3>[ 344.582427] usb_storage: version magic '2.6.32.15-ga2653ab-dirty
> preempt mod_unload ARMv7 ' should be
> '2.6.32-ics_ultr akernel_1.0 preempt
> mod_unload ARMv7 '
> <6>[ 3.070159] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> <7>[ 3.070220] ehci_hcd: block sizes: qh 60 qtd 96 itd 160 sitd 96
> <6>[ 3.197814] usb usb1: Manufacturer: Linux 2.6.32-ics_ultrakernel_1.0
> ehci_hcd
> <6>[ 1.294281] usbcore: registered new interface driver hub
> <7>[ 3.198455] hub 1-0:1.0: usb_probe_interface
> <7>[ 3.198486] hub 1-0:1.0: usb_probe_interface - got id
> <6>[ 3.198516] hub 1-0:1.0: USB hub found
> <6>[ 3.198547] hub 1-0:1.0: USB high speed hubs: 1
> <6>[ 3.198608] hub 1-0:1.0: hub staring...
> <6>[ 3.198638] hub 1-0:1.0: 1 port detected
> <7>[ 3.198669] hub 1-0:1.0: standalone hub
> <7>[ 3.198669] hub 1-0:1.0: individual port power switching
> <7>[ 3.198699] hub 1-0:1.0: individual port over-current protection
> <7>[ 3.198730] hub 1-0:1.0: Single TT
> <7>[ 3.198760] hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
> <7>[ 3.198791] hub 1-0:1.0: power on to power good time: 20ms
> <7>[ 3.198822] hub 1-0:1.0: local power source is good
> <7>[ 3.198852] hub 1-0:1.0: hub init 1.
> <7>[ 3.198883] hub 1-0:1.0: hub type = init.
> <7>[ 3.198913] hub 1-0:1.0: enabling power on all ports
> <7>[ 3.297546] hub 1-0:1.0: hub init 2.
> <7>[ 3.297607] hub 1-0:1.0: usb port status = 0, ret: 0, change: 0
> <7>[ 3.297637] hub 1-0:1.0: submit the urb.
> <7>[ 3.297668] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
> <7>[ 3.297698] hub 1-0:1.0: pre for loop i=1, i<=1.
> <7>[ 3.297729] hub 1-0:1.0: hub no event and not connect_change.
> <7>[ 3.297760] hub 1-0:1.0: hub port nothing todo.