From b4dd90d27b774b9062d1dc3d85dc2a031cc72507 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Fri, 12 Jul 2019 13:58:01 +0300 Subject: 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 --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers') 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); } -- cgit v1.2.3