disp: msm: dsi: prepare resources for cmd transfer at the start of the cmd packet

For batched commands, prepare resources at the start of the command packet and not for the
command with LAST_COMMAND flag set.

Change-Id: Ibbb0d1d1acd4ddeebd07bf9dd6ea1a949edd8d02
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
Satya Rama Aditya Pinapala
2021-07-21 11:21:19 -07:00
parent 48e71a3272
commit 095f5dd58a
2 changed files with 3 additions and 3 deletions

View File

@@ -713,7 +713,8 @@ static void dsi_display_set_cmd_tx_ctrl_flags(struct dsi_display *display,
}
/* Set flags for last command */
if (!(msg->flags & MIPI_DSI_MSG_BATCH_COMMAND))
if (!(msg->flags & MIPI_DSI_MSG_BATCH_COMMAND) || (flags & DSI_CTRL_CMD_FIFO_STORE)
|| (flags & DSI_CTRL_CMD_NON_EMBEDDED_MODE))
flags |= DSI_CTRL_CMD_LAST_COMMAND;
/*