[Defy Android Development] ccav2000:
I also seem to have problems with the WiFi not letting the system sleep.

I keep getting these entries:

<6>[17185.210357] request_suspend_state: sleep (0->3) at 17062364794008 (2013-03-26 19:32:54.746612430 UTC)
<6>[17186.174072] suspend: enter suspend
<6>[17186.174407] PM: Syncing filesystems ... done.
<7>[17186.252532] PM: Preparing system for mem sleep
<4>[17186.253082] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17186.286834] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17186.288848] PM: Entering mem sleep
<4>[17186.289215] Suspending console(s) (use no_console_suspend to debug)
<6>[17186.300292] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17186.300323]
<3>[17186.318084] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17186.318176] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17186.318206] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17186.318206] PM: Some devices failed to suspend
<7>[17186.374633] PM: Finishing wakeup.
<4>[17186.374938] Restarting tasks ... done.
<6>[17186.401000] suspend: exit suspend, ret = -22 (2013-03-26 19:32:55.937286251 UTC)
<6>[17186.478790] suspend: enter suspend
<6>[17186.479125] PM: Syncing filesystems ... done.
<7>[17186.557189] PM: Preparing system for mem sleep
<4>[17186.557525] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17186.597106] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17186.598907] PM: Entering mem sleep
<4>[17186.599456] Suspending console(s) (use no_console_suspend to debug)
<6>[17186.620788] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17186.620788]
<3>[17186.638458] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17186.638549] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17186.638580] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17186.638580] PM: Some devices failed to suspend
<7>[17186.694946] PM: Finishing wakeup.
<4>[17186.695220] Restarting tasks ... done.
<6>[17186.721679] suspend: exit suspend, ret = -22 (2013-03-26 19:32:56.257964965 UTC)
<6>[17186.799133] suspend: enter suspend
<6>[17186.799682] PM: Syncing filesystems ... done.
<7>[17186.877502] PM: Preparing system for mem sleep
<4>[17186.877807] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17186.917083] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17186.919158] PM: Entering mem sleep
<4>[17186.919494] Suspending console(s) (use no_console_suspend to debug)
<6>[17186.941101] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17186.941131]
<3>[17186.958740] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17186.958831] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17186.958862] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17186.958862] PM: Some devices failed to suspend
<7>[17187.015258] PM: Finishing wakeup.
<4>[17187.015777] Restarting tasks ... done.
<6>[17187.040740] suspend: exit suspend, ret = -22 (2013-03-26 19:32:56.576995713 UTC)
<6>[17187.119384] suspend: enter suspend
<6>[17187.119720] PM: Syncing filesystems ... done.
<7>[17187.197845] PM: Preparing system for mem sleep
<4>[17187.198394] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17187.232299] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17187.234344] PM: Entering mem sleep
<4>[17187.234680] Suspending console(s) (use no_console_suspend to debug)
<6>[17187.261291] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17187.261322]
<3>[17187.279052] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17187.279144] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17187.279174] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17187.279174] PM: Some devices failed to suspend
<7>[17187.335571] PM: Finishing wakeup.
<4>[17187.335876] Restarting tasks ... done.
<6>[17187.360961] suspend: exit suspend, ret = -22 (2013-03-26 19:32:56.897216673 UTC)
<6>[17187.439697] suspend: enter suspend
<6>[17187.440032] PM: Syncing filesystems ... done.
<7>[17187.518127] PM: Preparing system for mem sleep
<4>[17187.518463] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17187.553497] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17187.555267] PM: Entering mem sleep
<4>[17187.555847] Suspending console(s) (use no_console_suspend to debug)
<6>[17187.573852] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17187.573883]
<3>[17187.591552] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17187.591644] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17187.591674] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17187.591705] PM: Some devices failed to suspend
<7>[17187.648071] PM: Finishing wakeup.
<4>[17187.648345] Restarting tasks ... done.
<6>[17187.674438] suspend: exit suspend, ret = -22 (2013-03-26 19:32:57.210693235 UTC)
<6>[17187.752197] suspend: enter suspend
<6>[17187.752777] PM: Syncing filesystems ... done.
<7>[17187.830596] PM: Preparing system for mem sleep
<4>[17187.830902] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17187.863006] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17187.865051] PM: Entering mem sleep
<4>[17187.865386] Suspending console(s) (use no_console_suspend to debug)
<6>[17187.886413] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17187.886444]
<3>[17187.904052] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17187.904144] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17187.904174] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17187.904205] PM: Some devices failed to suspend
<7>[17187.960571] PM: Finishing wakeup.
<4>[17187.961090] Restarting tasks ... done.
<6>[17187.986968] suspend: exit suspend, ret = -22 (2013-03-26 19:32:57.523254258 UTC)
<6>[17188.064727] suspend: enter suspend
<6>[17188.065063] PM: Syncing filesystems ... done.
<7>[17188.143127] PM: Preparing system for mem sleep
<4>[17188.143646] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17188.177307] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17188.179321] PM: Entering mem sleep
<4>[17188.179656] Suspending console(s) (use no_console_suspend to debug)
<6>[17188.190917] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17188.190948]
<3>[17188.208740] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17188.208831] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17188.208862] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17188.208862] PM: Some devices failed to suspend
<7>[17188.265197] PM: Finishing wakeup.
<4>[17188.265502] Restarting tasks ... done.
<6>[17188.292053] suspend: exit suspend, ret = -22 (2013-03-26 19:32:57.828307985 UTC)
<6>[17188.369384] suspend: enter suspend
<6>[17188.369720] PM: Syncing filesystems ... done.
<7>[17188.447814] PM: Preparing system for mem sleep
<4>[17188.448120] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17188.482238] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17188.484039] PM: Entering mem sleep
<4>[17188.484375] Suspending console(s) (use no_console_suspend to debug)
<6>[17188.503570] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17188.503601]
<3>[17188.521240] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17188.521331] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17188.521362] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17188.521392] PM: Some devices failed to suspend
<7>[17188.577758] PM: Finishing wakeup.
<4>[17188.578063] Restarting tasks ... done.
<6>[17188.604492] suspend: exit suspend, ret = -22 (2013-03-26 19:32:58.140746939 UTC)
<6>[17188.681884] suspend: enter suspend
<6>[17188.682220] PM: Syncing filesystems ... done.
<7>[17188.760284] PM: Preparing system for mem sleep
<4>[17188.760589] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17188.792510] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17188.794555] PM: Entering mem sleep
<4>[17188.794891] Suspending console(s) (use no_console_suspend to debug)
<6>[17188.808258] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17188.808288]
<3>[17188.825927] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17188.826019] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17188.826049] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17188.826049] PM: Some devices failed to suspend
<7>[17188.882415] PM: Finishing wakeup.
<4>[17188.882965] Restarting tasks ... done.
<6>[17188.909240] suspend: exit suspend, ret = -22 (2013-03-26 19:32:58.445525997 UTC)
<6>[17188.986541] suspend: enter suspend
<6>[17188.986877] PM: Syncing filesystems ... done.
<7>[17189.065093] PM: Preparing system for mem sleep
<4>[17189.065612] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17189.099700] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17189.101745] PM: Entering mem sleep
<4>[17189.102081] Suspending console(s) (use no_console_suspend to debug)
<6>[17189.120727] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17189.120758]
<3>[17189.138397] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17189.138488] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17189.138519] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17189.138519] PM: Some devices failed to suspend
<7>[17189.194915] PM: Finishing wakeup.
<4>[17189.195190] Restarting tasks ... done.
<6>[17189.221191] suspend: exit suspend, ret = -22 (2013-03-26 19:32:58.757446167 UTC)
<6>[17189.299072] suspend: enter suspend
<6>[17189.299407] PM: Syncing filesystems ... done.
<7>[17189.377685] PM: Preparing system for mem sleep
<4>[17189.377990] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17189.410034] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17189.411834] PM: Entering mem sleep
<4>[17189.412200] Suspending console(s) (use no_console_suspend to debug)
<6>[17189.433258] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17189.433288]
<3>[17189.450927] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17189.451019] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17189.451049] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17189.451080] PM: Some devices failed to suspend
<7>[17189.507415] PM: Finishing wakeup.
<4>[17189.507690] Restarting tasks ... done.
<6>[17189.533905] suspend: exit suspend, ret = -22 (2013-03-26 19:32:59.070190297 UTC)
<6>[17189.611572] suspend: enter suspend
<6>[17189.611907] PM: Syncing filesystems ... done.
<7>[17189.689971] PM: Preparing system for mem sleep
<4>[17189.690277] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17189.721496] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17189.723327] PM: Entering mem sleep
<4>[17189.723876] Suspending console(s) (use no_console_suspend to debug)
<6>[17189.745697] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17189.745727]
<3>[17189.763458] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17189.763549] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17189.763580] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17189.763580] PM: Some devices failed to suspend
<7>[17189.819915] PM: Finishing wakeup.
<4>[17189.820190] Restarting tasks ... done.
<6>[17189.845428] suspend: exit suspend, ret = -22 (2013-03-26 19:32:59.381683226 UTC)
<6>[17189.924072] suspend: enter suspend
<6>[17189.924652] PM: Syncing filesystems ... done.
<7>[17190.002502] PM: Preparing system for mem sleep
<4>[17190.003021] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17190.036682] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17190.038696] PM: Entering mem sleep
<4>[17190.039031] Suspending console(s) (use no_console_suspend to debug)
<6>[17190.058258] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17190.058288]
<3>[17190.075988] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17190.076080] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17190.076110] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17190.076110] PM: Some devices failed to suspend
<7>[17190.132446] PM: Finishing wakeup.
<4>[17190.132720] Restarting tasks ... done.
<6>[17190.158966] suspend: exit suspend, ret = -22 (2013-03-26 19:32:59.695220822 UTC)
<6>[17190.236572] suspend: enter suspend
<6>[17190.236907] PM: Syncing filesystems ... done.
<7>[17190.315002] PM: Preparing system for mem sleep
<4>[17190.315551] Freezing user space processes ... (elapsed 0.03 seconds) done.
<4>[17190.349182] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17190.351226] PM: Entering mem sleep
<4>[17190.351562] Suspending console(s) (use no_console_suspend to debug)
<6>[17190.378509] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17190.378540]
<3>[17190.396270] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17190.396362] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17190.396392] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17190.396423] PM: Some devices failed to suspend
<7>[17190.452728] PM: Finishing wakeup.
<4>[17190.453033] Restarting tasks ... done.
<6>[17190.478332] suspend: exit suspend, ret = -22 (2013-03-26 19:33:00.014587265 UTC)
<6>[17190.986541] suspend: enter suspend
<6>[17190.986877] PM: Syncing filesystems ... done.
<7>[17191.142822] PM: Preparing system for mem sleep
<4>[17191.142974] Freezing user space processes ... (elapsed 0.01 seconds) done.
<4>[17191.161163] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[17191.162048] PM: Entering mem sleep
<4>[17191.162353] Suspending console(s) (use no_console_suspend to debug)
<6>[17191.164001] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------
<6>[17191.164031]
<3>[17191.176147] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[17191.176208] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[17191.176208] PM: Device mmci-omap-hs.2 failed to suspend: error -22
<3>[17191.176239] PM: Some devices failed to suspend
<7>[17191.208465] PM: Finishing wakeup.
<4>[17191.208618] Restarting tasks ... done.
<6>[17191.225311] suspend: exit suspend, ret = -22 (2013-03-26 19:33:00.761627077 UTC)
<6>[17191.280578] request_suspend_state: wakeup (3->0) at 17068435045473 (2013-03-26 19:33:00.816863895 UTC)
<6>[17191.361389] suspend: enter suspend
<6>[17191.361572] suspend: exit suspend, ret = -22 (2013-03-26 19:33:00.897888063 UTC)
<6>[17191.400451] te_scan_line is set = 768
<6>[17191.423858] done EDISCO CTRL ENABLE
<6>[17191.533935] qtouch_force_reset: Forcing HW reset
<6>[17191.650878] do_cmd_proc_msg:EEPROM checksum matches
<6>[17191.651489] qtouch_force_calibration: Forcing calibration
<6>[17191.651885] do_cmd_proc_msg: Reset done.
<6>[17191.652038] do_cmd_proc_msg: Self-calibration started.
<6>[17191.675537] Panel is turned on
<3>[17191.675720] omapdss DSI error: dssdev not suspended
<6>[17191.716918] do_cmd_proc_msg: Self-calibration started.

Also, I installed "better battery stats" and it shows that the device doesn't enter deep sleep at all. My conclusion is that the new WiFi drivers have problems with power management.