From 49a29fe542da56921c181955329a73478d1ec536 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 19 Nov 2008 17:09:50 +0000 Subject: fix-glamo-suspend-resume-dram-and-engines.patch Two issues... we never took care to take down engines in suspend and bring them back in resume. This was part of the display corruption that could be seen briefly on resume. The other issue that made the "noise" corruption was bad ordering of resume steps. This patch simplifies (removing needless re-init) resume actions and makes explicit the suspend and resume steps. It also adds code to track which engines are up and push them down in suspend and bring them back in resume. The result is no more corruption of display buffer in suspend, it comes back completely clean. Signed-off-by: Andy Green --- drivers/mfd/glamo/glamo-core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/mfd/glamo/glamo-core.h') diff --git a/drivers/mfd/glamo/glamo-core.h b/drivers/mfd/glamo/glamo-core.h index b1531b387e5..c89f8104fb1 100644 --- a/drivers/mfd/glamo/glamo-core.h +++ b/drivers/mfd/glamo/glamo-core.h @@ -30,6 +30,8 @@ struct glamo_core { u_int16_t revision; spinlock_t lock; struct resume_dependency resume_dependency; + u32 engine_enabled_bitfield; + u32 engine_enabled_bitfield_suspend; }; struct glamo_script { -- cgit v1.2.3