Comment 19 for bug 880432

Revision history for this message
Inderpal Singh (ips) wrote :

I tested the suspend/resume with ehci devices. They all are resuming fine after suspend/resume.
Below are the logs:

root@linaro-ubuntu-desktop:~# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=s5p-ehci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 0, Class=HID, Driver=usbhid, 1.5M
        |__ Port 3: Dev 4, If 0, Class=HID, Driver=usbhid, 1.5M
        |__ Port 4: Dev 5, If 0, Class=>ifc, Driver=dm9601, 12M
root@linaro-ubuntu-desktop:~#
.............
...............
[ 2640.805000] GPY3: CON4 22222222 => 22222222, DAT 00000000 => 00000000
[ 2640.805000] GPY4: CON4 22222222 => 22222222, DAT 00000000 => 00000000
[ 2640.805000] GPY5: CON4 22222222 => 22222222, DAT 00000000 => 000000ff
[ 2640.805000] GPY6: CON4 22222222 => 22222222, DAT 00000000 => 000000ff
[ 2640.805000] GPZ: CON4 00000000 => 02222222, DAT 00000000 => 00000001
[ 2640.805000] s3c_pm_enter: post sleep, preparing to return
[ 2640.805000] S3C PM Resume (post-restore)
[ 2640.805000] Enabling non-boot CPUs ...
[ 2640.815000] CPU1: Booted secondary processor
[ 2640.815000] Calibrating delay loop (skipped) already calibrated this CPU
[ 2640.815000] CPU1: Unknown IPI message 0x1
[ 2640.815000] CPU1 is up
[ 2640.820000] PM: early resume of devices complete after 1.263 msecs
[ 2640.820000] s3c-sdhci exynos4-sdhci.2: could not set regulator OCR (-22)
[ 2640.865000] s3c-i2c s3c2440-i2c.0: slave address 0x10
[ 2640.865000] s3c-i2c s3c2440-i2c.0: bus frequency set to 97 KHz
[ 2640.865000] s3c-i2c s3c2440-i2c.1: slave address 0x10
[ 2640.865000] s3c-i2c s3c2440-i2c.1: bus frequency set to 97 KHz
[ 2640.865000] s3c2410-wdt: watchdog disabled
[ 2640.865000] usb usb1: root hub lost power or was reset
[ 2640.890000] s3c-i2c s3c2440-hdmiphy-i2c: slave address 0x10
[ 2640.890000] s3c-i2c s3c2440-hdmiphy-i2c: bus frequency set to 97 KHz
[ 2640.945000] usb usb2: root hub lost power or was reset
[ 2640.945000] wake disabled for irq 301
[ 2640.945000] wake disabled for irq 302
[ 2640.945000] wake disabled for irq 303
[ 2640.945000] wake disabled for irq 304
[ 2640.945000] wake disabled for irq 305
[ 2640.950000] wake disabled for irq 292
[ 2641.240000] usb 1-1: reset high-speed USB device number 2 using s5p-ehci
[ 2641.650000] usb 1-1.4: reset full-speed USB device number 5 using s5p-ehci
[ 2641.740000] dm9601 1-1.4:1.0: no reset_resume for driver dm9601?
[ 2641.740000] dm9601 1-1.4:1.0: eth0: unregister 'dm9601' usb-s5p-ehci-1.4, Davicom DM9601 USB Ethernet
[ 2642.000000] usb 1-1.3: reset low-speed USB device number 4 using s5p-ehci
[ 2642.540000] usb 1-1.1: reset low-speed USB device number 3 using s5p-ehci
[ 2642.820000] PM: resume of devices complete after 2002.133 msecs
[ 2642.840000] dm9601 1-1.4:1.0: eth0: register 'dm9601' at usb-s5p-ehci-1.4, Davicom DM9601 USB Ethernet, 00:e0:4c:53:44:58
[ 2642.850000] PM: Finishing wakeup.
[ 2642.850000] Restarting tasks ... done.
[ 2642.870000] s3c-sdhci exynos4-sdhci.0: could not set regulator OCR (-22)
[ 2642.910000] s3c-sdhci exynos4-sdhci.3: could not set regulator OCR (-22)
[ 2643.155000] dm9601 1-1.4:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xFFFF
[ 2651.315000] EXT4-fs (mmcblk0p3): re-mounted. Opts: errors=remount-ro,commit=0
[ 2653.230000] eth0: no IPv6 routers present
root@linaro-ubuntu-desktop:~#

It can be seen from the logs that after resume USB device numbers from 2 to 5 are getting reset properly. No error messages with respect to USB devices after resume at all. The mouse and keyboard straightaway started working. Ethernet also works after restarting the network service after resume.