disp: msm: dsi: reset the DSI command ctrl flags for every command

The controller flags need to be reset for each command. On resetting
it only for a batch of commands, it may carry stale values and cause
unexpected behavior.

Change-Id: I8473be0c4361965a58c33a3d45420c533d48646b
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
Satya Rama Aditya Pinapala
2021-09-01 10:12:04 -07:00
والد 63dc6b64c9
کامیت b63a13c0b8

مشاهده پرونده

@@ -451,9 +451,9 @@ static int dsi_panel_tx_cmd_set(struct dsi_panel *panel,
goto error; goto error;
} }
cmds->ctrl_flags = 0;
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
cmds->ctrl_flags = 0;
if (state == DSI_CMD_SET_STATE_LP) if (state == DSI_CMD_SET_STATE_LP)
cmds->msg.flags |= MIPI_DSI_MSG_USE_LPM; cmds->msg.flags |= MIPI_DSI_MSG_USE_LPM;