From e319d261841fe77e9465113f65a2ab497eda82b0 Mon Sep 17 00:00:00 2001 From: Jiun Yu Date: Tue, 29 May 2018 15:05:56 +0900 Subject: [PATCH] fbdev: dpu20: call global contraint check function. Change-Id: I69723a4fc40628cd62ffb6226f2839d7068b550a Signed-off-by: Jiun Yu --- drivers/video/fbdev/exynos/dpu20/decon_core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/video/fbdev/exynos/dpu20/decon_core.c b/drivers/video/fbdev/exynos/dpu20/decon_core.c index c98c812e8af1..d3000910cc38 100644 --- a/drivers/video/fbdev/exynos/dpu20/decon_core.c +++ b/drivers/video/fbdev/exynos/dpu20/decon_core.c @@ -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 = ®s->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; -- 2.20.1