omapdss: extend pm notifier to handle hibernation
authorGrygorii Strashko <Grygorii.Strashko@linaro.org>
Wed, 25 Feb 2015 17:03:56 +0000 (19:03 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 20 Apr 2015 09:09:04 +0000 (12:09 +0300)
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>
drivers/video/fbdev/omap2/dss/core.c

index d5d92124e0199554afd8857922918de35d104e0d..16751755d43364c02c6b0d4814ea7b091cad474b 100644 (file)
@@ -179,10 +179,14 @@ static int omap_dss_pm_notif(struct notifier_block *b, unsigned long v, void *d)
 
        switch (v) {
        case PM_SUSPEND_PREPARE:
+       case PM_HIBERNATION_PREPARE:
+       case PM_RESTORE_PREPARE:
                DSSDBG("suspending displays\n");
                return dss_suspend_all_devices();
 
        case PM_POST_SUSPEND:
+       case PM_POST_HIBERNATION:
+       case PM_POST_RESTORE:
                DSSDBG("resuming displays\n");
                return dss_resume_all_devices();