Skip to content

Commit aa977f6

Browse files
Grygorii Strashkotomba
authored andcommitted
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 <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
1 parent 34260a7 commit aa977f6

File tree

1 file changed

+4
-0
lines changed
  • drivers/video/fbdev/omap2/dss

1 file changed

+4
-0
lines changed

drivers/video/fbdev/omap2/dss/core.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,14 @@ static int omap_dss_pm_notif(struct notifier_block *b, unsigned long v, void *d)
179179

180180
switch (v) {
181181
case PM_SUSPEND_PREPARE:
182+
case PM_HIBERNATION_PREPARE:
183+
case PM_RESTORE_PREPARE:
182184
DSSDBG("suspending displays\n");
183185
return dss_suspend_all_devices();
184186

185187
case PM_POST_SUSPEND:
188+
case PM_POST_HIBERNATION:
189+
case PM_POST_RESTORE:
186190
DSSDBG("resuming displays\n");
187191
return dss_resume_all_devices();
188192

0 commit comments

Comments
 (0)