Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f090f48e authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi-staging: fix dsi read for generic read commands"

parents 97d357f2 9aa7be48
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -946,6 +946,7 @@ static int dsi_ctrl_copy_and_pad_cmd(struct dsi_ctrl *dsi_ctrl,
	int rc = 0;
	u8 *buf = NULL;
	u32 len, i;
	u8 cmd_type = 0;

	len = packet->size;
	len += 0x3; len &= ~0x03; /* Align to 32 bits */
@@ -968,7 +969,11 @@ static int dsi_ctrl_copy_and_pad_cmd(struct dsi_ctrl *dsi_ctrl,


	/* send embedded BTA for read commands */
	if ((buf[2] & 0x3f) == MIPI_DSI_DCS_READ)
	cmd_type = buf[2] & 0x3f;
	if ((cmd_type == MIPI_DSI_DCS_READ) ||
	    (cmd_type == MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM) ||
	    (cmd_type == MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM) ||
	    (cmd_type == MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM))
		buf[3] |= BIT(5);

	*buffer = buf;