This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3359 resume from suspend error.

Other Parts Discussed in Thread: AM3359

After a lot of work I got suspend and resume working on my custom AM3359 board. But one problem remains: when the board suspends automatically (after a timeout) all works well and I can wakeup the board using the touchscreen. But when I give the command echo mem > /sys/power/state, the board suspends correctly, but at wakeup I can get the console again, but lcd doesn't turns on anymore and board tries to suspend again. Can anyone give me some advice in how solve this? What happens different from automatically and manually (echo mem) suspend?

After I give the echo mem > /sys/power/state one time, the error starts to occurs at automatically method too, I have to reboot the board to fix, but if I doesn't give the command, all works well.

root@android:/ #
root@android:/ # echo mem > /sys/power/state
[  114.703154] request_suspend_state: sleep (0->3) at 114630441974 (2013-05-25 16:22:50.019990961 UTC)
root@android:/ # [  114.741877] PM: Syncing filesystems ... done.
[  114.749671] Freezing user space processes ... (elapsed 0.01 seconds) done.
[  114.775782] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[  120.296510] LCD Controller timed out
[  120.311270] PM: suspend of devices complete after 5514.775 msecs
[  120.322547] omap_hwmod: adc_tsc: _wait_target_disable failed
[  120.329675] active wake lock event1-127, time left 498
[  120.335260] pm_noirq_op(): platform_pm_suspend_noirq+0x0/0x48 returns -11
[  120.342479] PM: Device power.0 failed to suspend late: error -11
[  120.553318] PM: early resume of devices complete after 204.397 msecs
[  120.560749] PM: Some devices failed to power down
[  120.719706] PM: resume of devices complete after 153.520 msecs
[  120.727086] Restarting tasks ... done.
[  120.773605] suspend: exit suspend, ret = -11 (2013-05-25 16:22:56.090450212 UTC)
[  120.781780] active wake lock event1-127, time left 500
[  120.807432] PM: Syncing filesystems ... done.
[  120.836180] Freezing user space processes ...
[  120.843193] active wake lock event1-127, time left 499
[  120.849243]
[  120.851165] Freezing of user space  aborted
[  120.856666]
[  120.858597] Restarting tasks ... done.
[  120.898687] suspend: exit suspend, ret = -16 (2013-05-25 16:22:56.215529879 UTC)
[  120.908299] PM: Syncing filesystems ... done.
[  120.923616] Freezing user space processes ...
[  120.930579] active wake lock event1-127, time left 500
[  120.936675]
[  120.938648] Freezing of user space  aborted
[  120.944191]
[  120.946126] Restarting tasks ... done.
[  120.988635] suspend: exit suspend, ret = -16 (2013-05-25 16:22:56.305484587 UTC)
[  120.996871] active wake lock event1-127, time left 499
[  121.009780] PM: Syncing filesystems ... done.
[  121.024687] Freezing user space processes ...
[  121.031671] active wake lock event1-127, time left 500
[  121.037720]
[  121.039642] Freezing of user space  aborted
[  121.045179]
[  121.047170] Restarting tasks ... done.
[  121.082784] suspend: exit suspend, ret = -16 (2013-05-25 16:22:56.399632129 UTC)
[  121.090957] active wake lock event1-127, time left 500
[  121.101591] PM: Syncing filesystems ... done.
[  121.114868] Freezing user space processes ...
[  121.121830] active wake lock event1-127, time left 500
[  121.127956]
[  121.129881] Freezing of user space  aborted
[  121.135371]
[  121.137303] Restarting tasks ... done.
[  121.174853] suspend: exit suspend, ret = -16 (2013-05-25 16:22:56.491698462 UTC)
[  121.183103] active wake lock event1-127, time left 499
[  121.193907] PM: Syncing filesystems ... done.
[  121.208085] Freezing user space processes ... (elapsed 0.01 seconds) done.
[  121.236168] Freezing remaining freezable tasks ...
[  121.241726] active wake lock event1-127, time left 500
[  121.247810]
[  121.249771] Freezing of tasks  aborted
[  121.254398]
[  121.256323] Restarting tasks ... done.
[  121.302144] suspend: exit suspend, ret = -16 (2013-05-25 16:22:56.618988670 UTC)
[  121.310379] active wake lock event1-127, time left 500
[  121.321143] PM: Syncing filesystems ... done.
[  121.352260] Freezing user space processes ...
[  121.359277] active wake lock PowerManagerService
[  121.364768]
[  121.366769] Freezing of user space  aborted
[  121.372277]
[  121.374310] Restarting tasks ... done.
[  121.405680] suspend: exit suspend, ret = -16 (2013-05-25 16:22:56.722530420 UTC)
[  121.413859] active wake lock PowerManagerService
[  121.908406] PM: Syncing filesystems ... done.
[  121.921119] Freezing user space processes ... (elapsed 0.01 seconds) done.
[  121.945832] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[  122.030667] PM: suspend of devices complete after 64.165 msecs
[  122.038743] PM: late suspend of devices complete after 1.582 msecs

Thanks,

Leonardo