Merge "disp: msm: dsi: batch max packet size command with read command"

This commit is contained in:
qctecmdr
2019-07-29 14:02:29 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -1342,6 +1342,8 @@ static int dsi_set_max_return_size(struct dsi_ctrl *dsi_ctrl,
int rc = 0;
u8 tx[2] = { (u8)(size & 0xFF), (u8)(size >> 8) };
u32 flags = DSI_CTRL_CMD_FETCH_MEMORY;
u16 dflags = rx_msg->flags;
struct mipi_dsi_msg msg = {
.channel = rx_msg->channel,
.type = MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE,
@@ -1350,6 +1352,10 @@ static int dsi_set_max_return_size(struct dsi_ctrl *dsi_ctrl,
.flags = rx_msg->flags,
};
/* remove last message flag to batch max packet cmd to read command */
dflags &= ~BIT(3);
msg.flags = dflags;
rc = dsi_message_tx(dsi_ctrl, &msg, flags);
if (rc)
DSI_CTRL_ERR(dsi_ctrl, "failed to send max return size packet, rc=%d\n",