From 9d0591d86fb8a5f5ed8e345b9e32039bce5334ba Mon Sep 17 00:00:00 2001 From: Sankeerth Billakanti Date: Wed, 17 Jul 2019 16:52:52 +0530 Subject: [PATCH] disp: msm: dp: correct the resolution width check in get_mode_info Use two layer mixers only if the resolution of the display exceeds the linewidth of the given layer mixer. Change-Id: I1892587816c0718280765353df7eabf82d6d7a18 --- msm/dp/dp_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/dp/dp_drm.c b/msm/dp/dp_drm.c index 799f9a925f..9edfc30344 100644 --- a/msm/dp/dp_drm.c +++ b/msm/dp/dp_drm.c @@ -381,7 +381,7 @@ int dp_connector_get_mode_info(struct drm_connector *connector, dp_panel = sde_conn->drv_panel; topology = &mode_info->topology; - topology->num_lm = (avail_res->max_mixer_width <= drm_mode->hdisplay) ? + topology->num_lm = (avail_res->max_mixer_width < drm_mode->hdisplay) ? dual_lm : single_lm; topology->num_enc = no_enc; topology->num_intf = single_intf;