On Wed, Apr 21, 2010 at 11:58 AM, Sriram V <vshrirama@xxxxxxxxx> wrote: > On Tue, Apr 20, 2010 at 9:37 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: >> On Tue, 20 Apr 2010, Sriram V wrote: >> >>> Hi, >>> Thanks for the response. We tried to add a Quirk for root hub and >>> Power Cycle & reset the PHY in suspend-resume. >>> >>> >>> There are my observations: >>> 1) Some times - suspend-resume works. (Say the 4/10 times) without >>> re-enumeration of the >>> device. >>> 2) The rest of the times, The device re-enumerates. >>> Whenever the device re-enumerates - I see lots of "unable to >>> enumerate USB device on port 1" and finally the device >>> re-enumerates. >>> >>> >>> Please advice. >> >> Please redo the test with CONFIG_PRINTK_TIME enabled. Also run >> usbmon (for the 1u device file) during the test. Instructions for >> usbmon are in Documentation/usb/usbmon.txt. >> > > I have appended the relevant console results with PRINTK_TIME enabled. > I have also attached a usbmonitor output text file. > Sorry, forgot to append console log. root@omap3:~/usbtest# echo mem > /sys/power/state [ 444.526428] PM: Syncing filesystems ... done. [ 446.071289] Freezing user space processes ... (elapsed 0.00 seconds) done. [ 446.082550] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) don e. [ 446.090087] Suspending console(s) (use no_console_suspend to debug) [ 446.353820] mmc2: card 0001 removed [ 447.445312] Powerdomain (iva2_pwrdm) didn't enter target state 1 [ 447.445343] Could not enter target state in pm_suspend [ 447.717254] regulator_check_voltage: operation not allowed for VMMC2 [ 448.240356] usb 1-2: reset high speed USB device using ehci-omap and address 2 [ 448.639343] pm_op(): usb_dev_resume+0x0/0x18 returns -19 [ 448.639373] PM: Device 1-2.1 failed to resume: error -19 [ 448.678894] Restarting tasks ... <7>hub 1-0:1.0: state 7 ports 3 chg 0004 evt 0000 [ 448.706542] usb 1-2.1: USB disconnect, address 3 [ 448.718444] done. root@omap3:~/usbtest# [ 449.154998] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 449.537719] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 449.795593] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 450.053344] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 450.311218] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 450.561218] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 450.819091] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 451.076812] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 451.334716] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 451.584686] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 451.842437] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 452.100311] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 452.358062] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 452.615936] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 452.865936] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 453.123657] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 453.381530] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 453.639282] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 453.889587] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 454.147155] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 454.405029] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 454.662780] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 454.975158] usb 1-2.1: new high speed USB device using ehci-omap and address 26 [ 455.101013] usb 1-2.1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 h as invalid maxpacket 64 [ 455.110260] usb 1-2.1: config 1 interface 1 altsetting 0 bulk endpoint 0x82 h as invalid maxpacket 64 [ 455.119537] usb 1-2.1: config 1 interface 4 altsetting 0 bulk endpoint 0x86 h as invalid maxpacket 64 [ 455.130310] usb 1-2.1: New USB device found, idVendor=0af0, idProduct=d035 [ 455.137268] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber =0 [ 455.144683] usb 1-2.1: Product: Option GlobeTrotter [ 455.149627] usb 1-2.1: Manufacturer: Option Wireless Technology [ 455.156127] usb 1-2.1: configuration #1 chosen from 1 choice [ 455.183502] hso0 (hso): not using net_device_ops yet root@omap3:~/usbtest# dmesg [ 446.090057] PM: Entering mem sleep [ 446.090087] Suspending console(s) (use no_console_suspend to debug) [ 446.096923] hub 1-2:1.0: hub_suspend [ 446.096954] usb 1-2: unlink qh256-0001/ffc00100 start 255 [1/0 us] [ 446.097137] hub 2-0:1.0: hub_suspend [ 446.097137] usb usb2: bus suspend [ 446.097167] hub 1-0:1.0: hub_suspend [ 446.097198] usb usb1: bus suspend [ 446.097198] ehci-omap ehci-omap.0: suspend root hub [ 446.353820] mmc2: card 0001 removed [ 447.445312] Powerdomain (iva2_pwrdm) didn't enter target state 1 [ 447.445343] Could not enter target state in pm_suspend [ 447.709167] usb usb1: usb resume [ 447.709381] ehci-omap ehci-omap.0: resume root hub [ 447.717254] regulator_check_voltage: operation not allowed for VMMC2 [ 447.763641] hub 1-0:1.0: hub_reset_resume [ 447.763641] hub 1-0:1.0: enabling power on all ports [ 447.873168] ehci-omap ehci-omap.0: GetStatus port 2 status 001803 POWER sig=j CSC CONNECT [ 447.873199] hub 1-0:1.0: port 2: status 0501 change 0001 [ 447.982513] usb usb2: usb resume [ 448.005950] hub 2-0:1.0: hub_reset_resume [ 448.005950] hub 2-0:1.0: enabling power on all ports [ 448.115417] usb 1-2: reset-resume [ 448.177856] ehci-omap ehci-omap.0: port 2 high speed [ 448.177886] ehci-omap ehci-omap.0: GetStatus port 2 status 001005 POWER sig=s e0 PE CONNECT [ 448.240356] usb 1-2: reset high speed USB device using ehci-omap and address 2 [ 448.302764] ehci-omap ehci-omap.0: port 2 high speed [ 448.302764] ehci-omap ehci-omap.0: GetStatus port 2 status 001005 POWER sig=s e0 PE CONNECT [ 448.397094] usb 1-2: manual set_interface for iface 0, alt 0 [ 448.397308] hub 1-2:1.0: hub_reset_resume [ 448.397338] hub 1-2:1.0: enabling power on all ports [ 448.506072] hub 1-2:1.0: port 1: status 0101 change 0001 [ 448.615295] usb 1-2: link qh256-0001/ffc00100 start 255 [1/0 us] [ 448.615570] usb 1-2.1: reset-resume [ 448.639190] hub 1-2:1.0: logical disconnect on port 1 [ 448.639343] pm_op(): usb_dev_resume+0x0/0x18 returns -19 [ 448.639373] PM: Device 1-2.1 failed to resume: error -19 [ 448.678863] PM: Finishing wakeup. [ 448.678894] Restarting tasks ... <7>hub 1-0:1.0: state 7 ports 3 chg 0004 evt 0000 [ 448.705749] hub 1-0:1.0: port 2, status 0503, change 0000, 480 Mb/s [ 448.705780] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 448.705810] hub 1-2:1.0: state 7 ports 2 chg 0002 evt 0000 [ 448.706512] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 448.706542] usb 1-2.1: USB disconnect, address 3 [ 448.711242] usb 1-2.1: unregistering device [ 448.711273] usb 1-2.1: usb_disable_device nuking all URBs [ 448.711273] usb 1-2.1: unregistering interface 1-2.1:1.0 [ 448.712188] usb 1-2.1:1.0: uevent [ 448.712280] usb 1-2.1: unregistering interface 1-2.1:1.1 [ 448.713012] usb 1-2.1:1.1: uevent [ 448.713073] usb 1-2.1: unregistering interface 1-2.1:1.2 [ 448.713928] usb 1-2.1:1.2: uevent [ 448.713989] usb 1-2.1: unregistering interface 1-2.1:1.3 [ 448.718444] done. [ 448.974792] usb 1-2.1:1.3: uevent [ 448.974914] usb 1-2.1: unregistering interface 1-2.1:1.4 [ 448.975769] usb 1-2.1:1.4: uevent [ 448.976257] usb 1-2.1: uevent [ 449.131408] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 449.154998] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 449.362945] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 449.363616] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 449.514190] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 449.537719] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 449.618804] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 449.619476] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 449.772003] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 449.795593] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 449.874786] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 449.875366] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 450.029815] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 450.053344] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 450.130798] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 450.131622] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 450.287658] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 450.311218] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 450.386779] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 450.387451] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 450.537658] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 450.561218] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 450.642791] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 450.643463] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 450.795257] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 450.819091] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 450.898773] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 450.899444] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 451.053253] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 451.076812] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 451.154785] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 451.155456] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 451.310882] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 451.334716] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 451.410766] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 451.411437] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 451.560882] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 451.584686] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 451.666809] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 451.667449] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 451.818878] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 451.842437] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 451.922760] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 451.923431] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 452.076507] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 452.100311] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 452.178741] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 452.179321] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 452.334503] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 452.358062] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 452.434753] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 452.435882] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 452.592132] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 452.615936] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 452.690734] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 452.691314] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 452.842315] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 452.865936] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 452.946746] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 452.947418] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 453.100097] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 453.123657] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 453.202728] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 453.203308] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 453.357971] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 453.381530] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 453.458740] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 453.459564] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 453.615753] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 453.639282] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 453.715423] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 453.716033] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 453.865600] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 453.889587] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 453.970733] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 453.971405] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 454.123596] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 454.147155] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 454.226745] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 454.227416] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 454.381195] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 454.405029] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 454.482727] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 454.483398] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 454.639190] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 454.662780] hub 1-2:1.0: unable to enumerate USB device on port 1 [ 454.738708] hub 1-2:1.0: state 7 ports 2 chg 0000 evt 0002 [ 454.739410] hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 454.889160] hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status 0x 101 [ 454.975158] usb 1-2.1: new high speed USB device using ehci-omap and address 26 [ 455.101013] usb 1-2.1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 h as invalid maxpacket 64 [ 455.110260] usb 1-2.1: config 1 interface 1 altsetting 0 bulk endpoint 0x82 h as invalid maxpacket 64 [ 455.119537] usb 1-2.1: config 1 interface 4 altsetting 0 bulk endpoint 0x86 h as invalid maxpacket 64 [ 455.129669] usb 1-2.1: default language 0x0409 [ 455.130310] usb 1-2.1: New USB device found, idVendor=0af0, idProduct=d035 [ 455.137268] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber =0 [ 455.144683] usb 1-2.1: Product: Option GlobeTrotter [ 455.149627] usb 1-2.1: Manufacturer: Option Wireless Technology [ 455.156005] usb 1-2.1: uevent [ 455.156127] usb 1-2.1: usb_probe_device [ 455.156127] usb 1-2.1: configuration #1 chosen from 1 choice [ 455.170562] usb 1-2.1: adding 1-2.1:1.0 (config #1, interface 0) [ 455.170745] usb 1-2.1:1.0: uevent -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html