If the DCSS core is runtime suspended, but the display-subsystem is not,
we need to resume the DCSS core before setting up DTG and SUBSAM
modules.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drm_display_mode_to_videomode(mode, &vm);
+ pm_runtime_get_sync(dcss_crtc->dev->parent);
+
dcss_dtg_sync_set(dcss, &vm);
dcss_ss_sync_set(dcss, &vm, mode->flags & DRM_MODE_FLAG_PHSYNC,
mode->flags & DRM_MODE_FLAG_PVSYNC);
+
+ pm_runtime_mark_last_busy(dcss_crtc->dev->parent);
+ pm_runtime_put_autosuspend(dcss_crtc->dev->parent);
}
static int dcss_crtc_atomic_check(struct drm_crtc *crtc,