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

Commit 9aa7be48 authored by Sandeep Panda's avatar Sandeep Panda Committed by Gerrit - the friendly Code Review server
Browse files

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



Current display driver only handles dsi DCS read commands, extend
the same to handle dsi generic read commands as well.

Change-Id: I856fd95c55db6702551aa791d4c5e2df98761fd7
Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
parent 67c1e15c
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;