MLK-17231-3: drm: imx: dcss: drop runtime autosuspend feature
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Tue, 12 Dec 2017 11:08:36 +0000 (13:08 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
This was needed when using the mode_set_nofb() callback. Since
everything was moved to crtc_enable() callback, runtime autosuspend
can be dropped.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/dcss/dcss-crtc.c
drivers/gpu/imx/dcss/dcss-common.c

index 77c154f..eeba72d 100644 (file)
@@ -202,8 +202,7 @@ static void dcss_crtc_atomic_disable(struct drm_crtc *crtc,
        wait_for_completion_timeout(&dcss_crtc->disable_completion,
                                    msecs_to_jiffies(100));
 
-       pm_runtime_mark_last_busy(dcss_crtc->dev->parent);
-       pm_runtime_put_autosuspend(dcss_crtc->dev->parent);
+       pm_runtime_put_sync(dcss_crtc->dev->parent);
 }
 
 static const struct drm_crtc_helper_funcs dcss_helper_funcs = {
index cd4afdc..178383f 100644 (file)
@@ -438,8 +438,6 @@ static int dcss_probe(struct platform_device *pdev)
 
        dcss_debugfs_init(dcss);
 
-       pm_runtime_set_autosuspend_delay(&pdev->dev, 3000);
-       pm_runtime_use_autosuspend(&pdev->dev);
        pm_runtime_enable(&pdev->dev);
 
        dcss_bus_freq(dcss, true);