From: Jiun Yu Date: Tue, 29 May 2018 06:05:56 +0000 (+0900) Subject: fbdev: dpu20: call global contraint check function. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e319d261841fe77e9465113f65a2ab497eda82b0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fbdev: dpu20: call global contraint check function. Change-Id: I69723a4fc40628cd62ffb6226f2839d7068b550a Signed-off-by: Jiun Yu --- 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;