disp: msm: dsi: clear ctrl_flags for private DCS panel command

DSI or panel configurations might be changed dynamically, so clear
ctrl_flags of private DCS command to regenerate it according
to current display configurations.

Change-Id: Iddfcbe7f14de65ed0edf408a75b0a50bdb0a2d29
Signed-off-by: Lei Chen <chenlei@codeaurora.org>
This commit is contained in:
Lei Chen
2021-06-04 16:59:57 +08:00
parent 1b9345b3af
commit 484091de41

View File

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