summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Diaz Prado <x0083741@ti.com>2011-05-31 09:25:11 +0100
committerAndy Green <andy.green@linaro.org>2011-05-31 11:06:41 +0100
commit8ac6eede4a32174dc3e9744464e2844a1a967d46 (patch)
tree5f23fb9c8c13ebfe3e9c60458f66c9f81ce4eed3
parent2dbf980c2836c3039550e9709ed8e2113a1f9cbf (diff)
SGX: UDD: Changing the early suspend registration level
This patch fixes a problem when a native application is running on the secondary display at the same time the Android UI is being shown in the primary display and the suspend mechanism happens. By registering to EARLY_SUSPEND_LEVEL_STOP_DRAWING level the UDD will receive the suspend signal before the DSS goes to suspend, this prevents UDD to interact with the DSS when it is already suspended. The resume mechanism will work in the inverse way, the DSS will be notified first that it needs to resume, then the UDD will be allowed to push frames again to the DSS. This ensures the UDD receives the suspend/resume signal at the correct time. Signed-off-by: Gustavo Diaz Prado <x0083741@ti.com> Change-Id: Ie634e17f6300c3ff2ea9973c36563c6565483322
-rw-r--r--drivers/gpu/pvr/omaplfb/omaplfb_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/pvr/omaplfb/omaplfb_linux.c b/drivers/gpu/pvr/omaplfb/omaplfb_linux.c
index 7629c6f3c9c..a4e1a94daf5 100644
--- a/drivers/gpu/pvr/omaplfb/omaplfb_linux.c
+++ b/drivers/gpu/pvr/omaplfb/omaplfb_linux.c
@@ -405,7 +405,7 @@ static struct platform_driver omaplfb_driver = {
static struct early_suspend omaplfb_early_suspend = {
.suspend = OMAPLFBDriverSuspend_Entry,
.resume = OMAPLFBDriverResume_Entry,
- .level = EARLY_SUSPEND_LEVEL_DISABLE_FB,
+ .level = EARLY_SUSPEND_LEVEL_STOP_DRAWING,
};
#else /* defined(SGX_EARLYSUSPEND) && defined(CONFIG_HAS_EARLYSUSPEND) */