From da28d89b796b0e350cbe5933c593e71db1f7e337 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 18 May 2021 18:03:27 +0800 Subject: [PATCH] Revert "(CR): drm: mipi: Disable the MIPI DSI commands 0x2E and 0x3E" This reverts commit 98f75f797773394bdb81969aa795d3eeb68642ad. Mot-CRs-fixed: (CR) MIPI_DCS_READ_MEMORY_CONTINUE =0x3E MIPI_DCS_READ_MEMORY_START =0x2C These commands for page 0 is MIPI DCS commands. But For other pages, these commands(0x3E,0x2C) maybe normal register. So these codes are not right. And we haven't get the requirement to disable 0x3E and 0x2C, SO we revert these changes first. Change-Id: I5e18a5e52420ceb78dc298598b097d70011151dd Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1952409 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Shanshan Dai Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- msm/dsi/dsi_ctrl.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/msm/dsi/dsi_ctrl.c b/msm/dsi/dsi_ctrl.c index cf83c21aea88..278e3dcbe921 100644 --- a/msm/dsi/dsi_ctrl.c +++ b/msm/dsi/dsi_ctrl.c @@ -1542,7 +1542,6 @@ static int dsi_message_tx(struct dsi_ctrl *dsi_ctrl, u8 *buffer = NULL; u32 cnt = 0; u8 *cmdbuf; - const u8 *dsi_buf; /* Select the tx mode to transfer the command */ dsi_message_setup_tx_mode(dsi_ctrl, msg->tx_len, flags); @@ -1587,14 +1586,6 @@ static int dsi_message_tx(struct dsi_ctrl *dsi_ctrl, goto kickoff; } - dsi_buf = msg->tx_buf; - if ((dsi_buf[0] == MIPI_DCS_READ_MEMORY_START) || - (dsi_buf[0] == MIPI_DCS_READ_MEMORY_CONTINUE)) { - DSI_CTRL_ERR(dsi_ctrl, "%s: Invalid dsi_cmd=0x%4x\n", __func__, dsi_buf[0]); - rc = -EINVAL; - goto error; - } - rc = mipi_dsi_create_packet(&packet, msg); if (rc) { DSI_CTRL_ERR(dsi_ctrl, "Failed to create message packet, rc=%d\n",