arm: tegra: xmm: CP wakeup and system suspend
authorSeshendra Gadagottu <sgadagottu@nvidia.com>
Thu, 29 Mar 2012 21:04:43 +0000 (02:04 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 05:10:09 +0000 (10:10 +0530)
commit06384109491e84a3e19538f524576386f2c358c5
tree415bbfb5f6979019836253667e04b72ed3f8c936
parent1f75c2b913dc0836ed0ee65f1e3c46f3cfacbb0e
arm: tegra: xmm: CP wakeup and system suspend

To handle race condition between CP wakeup and system suspend
following policy enforced:
1. If system suspend happens first, then buffer the CP wake
   request and will abort the suspend at the end of device suspend
   complete.
2. If CP wakeup happens first, then system suspend starts then abort
   the system suspend immediately.

Bug 938553
Bug 948198
Bug 943035

Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/83130
(cherry picked from commit b2bd06368d3f6e16e5a7dd81c76dda0293de301b)

Change-Id: Ic7024aa739472a666f1274ccd7c9722259d54fa5
Reviewed-on: http://git-master/r/93384
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>
arch/arm/mach-tegra/baseband-xmm-power.c