Merge "disp: msm: dsi: batch max packet size command with read command"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
66b5946f37
@@ -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",
|
||||
|
Reference in New Issue
Block a user