mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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 <houdz1@lenovo.com> Reviewed-on: https://gerrit.mot.com/1952409 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan <tanhua1@motorola.com> Reviewed-by: Shanshan Dai <daiss1@motorola.com> Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
83d72184f0
commit
da28d89b79
1 changed files with 0 additions and 9 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue