From d70fb72fed6aa11717806a4b0bf52cf9797f6e63 Mon Sep 17 00:00:00 2001 From: Sandeep Panda Date: Fri, 19 May 2017 15:54:16 +0530 Subject: [PATCH] msm: mdss: do not print error in case sync_trigger is enabled In case sync trigger is enabled, then DCS commands are only sent for both the DSI controller when transfer call for the second DSI controller happens. So in that case do not print error log for the first controller if DCS command is not sent. Change-Id: I5c302f55f15735970cd5f6c8d0b31c55b447433f Signed-off-by: Sandeep Panda --- drivers/video/fbdev/msm/mdss_dsi_host.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/msm/mdss_dsi_host.c b/drivers/video/fbdev/msm/mdss_dsi_host.c index 1a471155072b..537d6213f891 100644 --- a/drivers/video/fbdev/msm/mdss_dsi_host.c +++ b/drivers/video/fbdev/msm/mdss_dsi_host.c @@ -1154,6 +1154,8 @@ static int mdss_dsi_read_status(struct mdss_dsi_ctrl_pdata *ctrl) rc = mdss_dsi_cmdlist_put(ctrl, &cmdreq); if (rc <= 0) { + if (!mdss_dsi_sync_wait_enable(ctrl) || + mdss_dsi_sync_wait_trigger(ctrl)) pr_err("%s: get status: fail\n", __func__); return rc; }