summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-07-12 13:58:01 +0300
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2020-02-12 11:05:59 +0100
commit8e04365a47852101eb70da5fc386f03766fe2a35 (patch)
tree96e825dfd5b0e04b0aec57051615bc2fa8fc8a39
parent7f8041f665d85b25b4bc48382103f0bf34af5086 (diff)
drm/mxsfb: grab the pm->sync() reference on probing
The mxsfb driver doesn't have a real consumer. This leads the power domains of eLCDIF to off right after device probing. It is required to get the reference counter to prevent this behavior. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--drivers/gpu/drm/mxsfb/mxsfb_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
index 1a12f5e1bd13..11d95d48d2ae 100644
--- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c
+++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
@@ -556,6 +556,7 @@ static int mxsfb_load(struct drm_device *drm, unsigned long flags)
drm_helper_hpd_irq_event(drm);
pm_runtime_enable(drm->dev);
+ pm_runtime_get_sync(drm->dev);
return 0;
@@ -592,6 +593,7 @@ static void mxsfb_unload(struct drm_device *drm)
drm->dev_private = NULL;
+ pm_runtime_put_sync(drm->dev);
pm_runtime_disable(drm->dev);
}