drm/exynos: fimc: fix runtime pm support
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 31 Mar 2015 11:19:38 +0000 (13:19 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 13 Apr 2015 10:44:57 +0000 (12:44 +0200)
Once pm_runtime_set_active() gets called, the kernel assumes that given
device has already enabled runtime pm and will call pm_runtime_suspend() without matching pm_runtime_resume(). In case of DRM FIMC IPP driver, this
will result in calling clk_disable() without respective call to clk_enable(). This patch removes call to pm_runtime_set_active() to ensure
that pm_runtime_suspend/resume calls will match.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimc.c

index 012f66d884c5c4a2a5ca90a49b13603e4b5efed1..c41d3db13ed59460bbb837e26447111e754d89aa 100644 (file)
@@ -1856,7 +1856,6 @@ static int fimc_probe(struct platform_device *pdev)
        spin_lock_init(&ctx->lock);
        platform_set_drvdata(pdev, ctx);
 
-       pm_runtime_set_active(dev);
        pm_runtime_enable(dev);
 
        ret = exynos_drm_ippdrv_register(ippdrv);