diff options
author | Grygorii Strashko <Grygorii.Strashko@linaro.org> | 2015-02-25 12:03:56 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-04-20 05:09:04 -0400 |
commit | aa977f62dff4fb41e89b473c9831c292c01d8bfc (patch) | |
tree | abefa51893508bd0ead3fed23d94d3a938cb87aa /drivers/video | |
parent | 34260a79b2b3063d7a8b8208f7d5d8cc0e1826f4 (diff) |
omapdss: extend pm notifier to handle hibernation
Add handling of missed events in omap_dss_pm_notif which are
needed to support hibernation (suspend to disk).
Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/omap2/dss/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/omap2/dss/core.c b/drivers/video/fbdev/omap2/dss/core.c index d5d92124e019..16751755d433 100644 --- a/drivers/video/fbdev/omap2/dss/core.c +++ b/drivers/video/fbdev/omap2/dss/core.c | |||
@@ -179,10 +179,14 @@ static int omap_dss_pm_notif(struct notifier_block *b, unsigned long v, void *d) | |||
179 | 179 | ||
180 | switch (v) { | 180 | switch (v) { |
181 | case PM_SUSPEND_PREPARE: | 181 | case PM_SUSPEND_PREPARE: |
182 | case PM_HIBERNATION_PREPARE: | ||
183 | case PM_RESTORE_PREPARE: | ||
182 | DSSDBG("suspending displays\n"); | 184 | DSSDBG("suspending displays\n"); |
183 | return dss_suspend_all_devices(); | 185 | return dss_suspend_all_devices(); |
184 | 186 | ||
185 | case PM_POST_SUSPEND: | 187 | case PM_POST_SUSPEND: |
188 | case PM_POST_HIBERNATION: | ||
189 | case PM_POST_RESTORE: | ||
186 | DSSDBG("resuming displays\n"); | 190 | DSSDBG("resuming displays\n"); |
187 | return dss_resume_all_devices(); | 191 | return dss_resume_all_devices(); |
188 | 192 | ||