[Gta04-owner] Suspend / Resume on 3.12.0

Benjamin Deering ben_deering at swissmail.org
Sat Nov 16 16:12:47 CET 2013


On 11/16/2013 08:43 AM, Dr. H. Nikolaus Schaller wrote:
> Am 14.11.2013 um 22:21 schrieb Benjamin Deering:
>
>> On 11/14/2013 12:36 PM, Dr. H. Nikolaus Schaller wrote:
>>> Ok, I have reverted this in the 3.12.0 kernel. Maybe it conflicts with the
>>> 3.12 kernel?
>>>
>>> But I still have a problem with mmc1 (WiFi):
>>>
>>> echo mem>   /sys/power/state
>>>
>>> [  462.113830] PM: Syncing filesystems ... done.
>>> [  462.190917] Freezing user space processes ... (elapsed 0.001 seconds) done.
>>> [  462.201293] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
>>> [  462.210693] Suspending console(s) (use no_console_suspend to debug)
>>> [  462.218627] dpm_run_callback(): mmc_bus_suspend+0x0/0x44 returns -38
>>> [  462.218750] PM: Device mmc1:0001 failed to suspend: error -38
>>> [  462.218780] PM: Some devices failed to suspend, or early wake event detected
>>> [  462.219146] PM: resume of devices complete after 0.335 msecs
>>> [  462.246551] Restarting tasks ... done.
>>>
>>> BTW: a description about OMAP3 power management can be found here:
>>>
>>> http://elinux.org/OMAP_Power_Management
>>>
>>> The only thing to note is that some /sys nodes have moved and changed.
>>>
>>> BR,
>>> Nikolaus
>>>
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com
>>> http://lists.goldelico.com/mailman/listinfo/gta04-owner
>>>
>> I applied this hack: http://git.neil.brown.name/?p=gta04.git;a=commit;h=da9b70a32f5b7ca53d89840ace01c2471c76ef69 to my build a while ago to make it suspend.  It look like it just ignores an error condition.  I haven't looked at why there is an error condition.
> I have now applied it as well - and the GTA04 suspends once, but with a lot of problems. A second suspend gives an error message.

It looks like the master branch on git still has off_mode enabled which 
is pretty unstable.  Do you have something like this to disable off-mode?

diff --git a/arch/arm/mach-omap2/board-omap3gta04.c 
b/arch/arm/mach-omap2/board-omap3gta04.c
index a49cf1e..b96aeb9 100644
--- a/arch/arm/mach-omap2/board-omap3gta04.c
+++ b/arch/arm/mach-omap2/board-omap3gta04.c
@@ -1685,8 +1685,8 @@ static void __init gta04_init_late(void)
  {
         omap3630_init_late();

-       omap_pm_enable_off_mode();
-       omap3_pm_off_mode_enable(1);
+       //omap_pm_enable_off_mode();
+       //omap3_pm_off_mode_enable(1);
  //     omap_hsmmc_late_init(mmc);      // if we do it here, we must 
comment out the other call in the led
  #if defined(CONFIG_VIDEO_OV9655) || defined(CONFIG_VIDEO_OV9655_MODULE)
         gta04_camera_setup();

I see the mmc errors, but not the backtrace.

Ben


More information about the Gta04-owner mailing list