fbdev: dpu20: moved iovmm active positon for video mode
authorChiHun Won <chihun.won@samsung.com>
Tue, 19 Jun 2018 01:07:11 +0000 (10:07 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Wed, 20 Jun 2018 00:22:09 +0000 (09:22 +0900)
Change-Id: I4ed1a37c718ace1d5dec44d11d04620f65f451c7
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
drivers/video/fbdev/exynos/dpu20/dsim_drv.c

index 7ba3a987094a54c86824c47afc9683eac4d16feb..598b925d188f4c16de493dffd10490f6a8135691 100644 (file)
@@ -1550,13 +1550,6 @@ static int dsim_probe(struct platform_device *pdev)
 
        pm_runtime_enable(dev);
 
-       ret = iovmm_activate(dev);
-       if (ret) {
-               dsim_err("failed to activate iovmm\n");
-               goto err_dt;
-       }
-       iovmm_set_fault_handler(dev, dpu_sysmmu_fault_handler, NULL);
-
        ret = dsim_get_data_lanes(dsim);
        if (ret)
                goto err_dt;
@@ -1568,6 +1561,13 @@ static int dsim_probe(struct platform_device *pdev)
        dsim->state = DSIM_STATE_INIT;
        dsim_enable(dsim);
 
+       ret = iovmm_activate(dev);
+       if (ret) {
+               dsim_err("failed to activate iovmm\n");
+               goto err_dt;
+       }
+       iovmm_set_fault_handler(dev, dpu_sysmmu_fault_handler, NULL);
+
        /* TODO: If you want to enable DSIM BIST mode. you must turn on LCD here */
 #if !defined(BRINGUP_DSIM_BIST)
        call_panel_ops(dsim, probe, dsim);