disp: msm: dsi: Fix post cmd tx sequence for read commands
For read commands, wait_for_done() should be called in dsi_message_rx function. Currently, its being called twice from dsi_message_rx and dsi_ctrl_post_cmd_transfer. This change adds a check to skip wait_for_done() from dsi_ctrl_post_cmd_transfer. Change-Id: Icb7ccd0f8dde24c6c26732f7cb92a20bebb26f5d Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
This commit is contained in:
@@ -433,7 +433,8 @@ static void dsi_ctrl_post_cmd_transfer(struct dsi_ctrl *dsi_ctrl)
|
||||
if ((dsi_ctrl->pending_cmd_flags & DSI_CTRL_CMD_BROADCAST) &&
|
||||
!(dsi_ctrl->pending_cmd_flags & DSI_CTRL_CMD_BROADCAST_MASTER)) {
|
||||
dsi_ctrl_clear_dma_status(dsi_ctrl);
|
||||
} else {
|
||||
} else if (!(dsi_ctrl->pending_cmd_flags & DSI_CTRL_CMD_READ)) {
|
||||
/* Wait for read command transfer to complete is done in dsi_message_rx. */
|
||||
dsi_ctrl_dma_cmd_wait_for_done(dsi_ctrl);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user