From 87e1c4f2b249f3ed1bd1622fb617ac24b140e95c Mon Sep 17 00:00:00 2001 From: Satya Rama Aditya Pinapala Date: Mon, 28 Jun 2021 11:04:35 -0700 Subject: [PATCH] disp: msm: dsi: batch ROI DCS commands together The CASET and PASET commands can be batched together and sent using the MIPI_DSI_MSG_BATCH_COMMAND flag. This was during pre kickoff there is no unnecessary wait between the ROI commands. Change-Id: I96ce30367f66024dc56f67bc1f113cac36353a9b Signed-off-by: Satya Rama Aditya Pinapala --- msm/dsi/dsi_panel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index 3e35e2ad9e..b49c60c6d3 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -4407,6 +4407,7 @@ static int dsi_panel_roi_prepare_dcs_cmds(struct dsi_panel_cmd_set *set, set->cmds[0].msg.channel = 0; set->cmds[0].msg.type = MIPI_DSI_DCS_LONG_WRITE; set->cmds[0].msg.flags = unicast ? MIPI_DSI_MSG_UNICAST_COMMAND : 0; + set->cmds[0].msg.flags |= MIPI_DSI_MSG_BATCH_COMMAND; set->cmds[0].msg.tx_len = ROI_CMD_LEN; set->cmds[0].msg.tx_buf = caset; set->cmds[0].msg.rx_len = 0;