disp: msm: dsi: Mask overflow error for Broadcast command
Currently, for Dual DSI Broadcast command, Overflow error is masked only for master controller. This changes add support to mask overflow error for slave controller as well. Change-Id: Ida73c4166e996fcf2c8c936d0c76d0a89a220d89 Signed-off-by: Harigovindan P <harigovi@codeaurora.org> Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org> Signed-off-by: Steve Cohen <cohens@codeaurora.org>
This commit is contained in:

committed by
Steve Cohen

szülő
d8ffbf3d39
commit
25b6a3e7d1
@@ -2969,6 +2969,23 @@ static int dsi_display_wake_up(struct dsi_display *display)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void dsi_display_mask_overflow(struct dsi_display *display, u32 flags,
|
||||
bool enable)
|
||||
{
|
||||
struct dsi_display_ctrl *ctrl;
|
||||
int i;
|
||||
|
||||
if (!(flags & DSI_CTRL_CMD_LAST_COMMAND))
|
||||
return;
|
||||
|
||||
display_for_each_ctrl(i, display) {
|
||||
ctrl = &display->ctrl[i];
|
||||
if (!ctrl)
|
||||
continue;
|
||||
dsi_ctrl_mask_overflow(ctrl->ctrl, enable);
|
||||
}
|
||||
}
|
||||
|
||||
static int dsi_display_broadcast_cmd(struct dsi_display *display,
|
||||
const struct mipi_dsi_msg *msg)
|
||||
{
|
||||
@@ -3004,6 +3021,7 @@ static int dsi_display_broadcast_cmd(struct dsi_display *display,
|
||||
* 2. Trigger commands
|
||||
*/
|
||||
m_ctrl = &display->ctrl[display->cmd_master_idx];
|
||||
dsi_display_mask_overflow(display, m_flags, true);
|
||||
rc = dsi_ctrl_cmd_transfer(m_ctrl->ctrl, msg, &m_flags);
|
||||
if (rc) {
|
||||
DSI_ERR("[%s] cmd transfer failed on master,rc=%d\n",
|
||||
@@ -3039,6 +3057,7 @@ static int dsi_display_broadcast_cmd(struct dsi_display *display,
|
||||
}
|
||||
|
||||
error:
|
||||
dsi_display_mask_overflow(display, m_flags, false);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user