fbdev: dpu20: call global contraint check function.
authorJiun Yu <jiun.yu@samsung.com>
Tue, 29 May 2018 06:05:56 +0000 (15:05 +0900)
committerWooyeon Kim <wooy88.kim@samsung.com>
Fri, 6 Jul 2018 01:43:19 +0000 (10:43 +0900)
Change-Id: I69723a4fc40628cd62ffb6226f2839d7068b550a
Signed-off-by: Jiun Yu <jiun.yu@samsung.com>
drivers/video/fbdev/exynos/dpu20/decon_core.c

index c98c812e8af18d78efd75e97dccd31d545730486..d3000910cc38bf56e79efca2b4d41f978cba6016 100644 (file)
@@ -2257,6 +2257,11 @@ static int decon_prepare_win_config(struct decon_device *decon,
        struct decon_window_regs *win_regs;
 
        decon_dbg("%s +\n", __func__);
+
+       ret = decon_check_global_limitation(decon, win_config);
+       if (ret)
+               goto config_err;
+
        for (i = 0; i < decon->dt.max_win && !ret; i++) {
                config = &win_config[i];
                win_regs = &regs->win_regs[i];
@@ -2316,6 +2321,8 @@ static int decon_prepare_win_config(struct decon_device *decon,
                        dpu_translate_fmt_to_dpp(regs->dpp_config[i].format);
        }
 
+config_err:
+
        decon_dbg("%s -\n", __func__);
 
        return ret;