summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/mxsfb.c
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-03-03 19:15:20 -0800
committerPhilippe Schenker <philippe.schenker@toradex.com>2020-08-13 16:04:36 +0200
commite7043d97f44c28cbcccf888dd7e153ad76fca22a (patch)
treec4409302077f8898adc355ad63e20da68872f55a /drivers/video/fbdev/mxsfb.c
parent045cd730e8c895e6a535f6ad28b885e8de8b8c39 (diff)
video: fbdev: mxsfb: make sure runtime PM is suspended in system suspend
Use force suspend/resume to trigger runtime PM when entering system suspend. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit ebf45652f2e9ec2ab19831d852363deadeb6407e) (cherry picked from commit 67006f70f1588a1f11eb8c72b32ef25ca0ca88bb)
Diffstat (limited to 'drivers/video/fbdev/mxsfb.c')
-rw-r--r--drivers/video/fbdev/mxsfb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c
index b826c17702ed..fe7a987d383a 100644
--- a/drivers/video/fbdev/mxsfb.c
+++ b/drivers/video/fbdev/mxsfb.c
@@ -2455,6 +2455,7 @@ static int mxsfb_suspend(struct device *pdev)
host->restore_blank = saved_blank;
console_unlock();
+ pm_runtime_force_suspend(&host->pdev->dev);
pinctrl_pm_select_sleep_state(pdev);
return 0;
@@ -2466,6 +2467,7 @@ static int mxsfb_resume(struct device *pdev)
struct fb_info *fb_info = host->fb_info;
pinctrl_pm_select_default_state(pdev);
+ pm_runtime_force_resume(&host->pdev->dev);
console_lock();
mxsfb_overlay_resume(host);