arm: tegra: xmm: CP wakeup and system suspend
authorSeshendra Gadagottu <sgadagottu@nvidia.com>
Thu, 29 Mar 2012 21:04:43 +0000 (02:04 +0530)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Fri, 13 Apr 2012 05:57:29 +0000 (22:57 -0700)
commit8f76645dc5aacdfd9398a13963a3b177821713d2
tree11f7862a2d3b4310833ff7391574c42b5a554fdb
parent02ec547ceb849e603c602973a6af0baa96568032
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