From b63a13c0b882d1386a2a9075015f2c62361539ee Mon Sep 17 00:00:00 2001 From: Satya Rama Aditya Pinapala Date: Wed, 1 Sep 2021 10:12:04 -0700 Subject: [PATCH] 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 --- msm/dsi/dsi_panel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index baf36f4400..13a80294c0 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -451,9 +451,9 @@ static int dsi_panel_tx_cmd_set(struct dsi_panel *panel, goto error; } - cmds->ctrl_flags = 0; - for (i = 0; i < count; i++) { + cmds->ctrl_flags = 0; + if (state == DSI_CMD_SET_STATE_LP) cmds->msg.flags |= MIPI_DSI_MSG_USE_LPM;