Revert "(CR): drm: mipi: Disable the MIPI DSI commands 0x2E and 0x3E"

fix black issue:
Some panel need 0x3E cmds

This reverts commit 2e54096c56a1777cf4719372171e5461ea208bc4.

Change-Id: Ic873559f72880985934e37f20e29622956f85333
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2209880
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Xianhong Li <lixh8@lenovo.com>
(cherry picked from commit 0226e39ff9c0dbbe918c422c8104ab84f377e0ca)
Reviewed-on: https://gerrit.mot.com/2218861
Reviewed-by: Hua Tan <tanhua1@motorola.com>
This commit is contained in:
hujing3 authored and Gilberto Gambugge committed 2023-06-01 00:48:52 -03:00
1 parent 6d12d90742
commit 0e5fbb8167
1 file changed
-9
-9
View File
@@ -445,8 +445,6 @@ EXPORT_SYMBOL(mipi_dsi_packet_format_is_long);
int mipi_dsi_create_packet(struct mipi_dsi_packet *packet,
const struct mipi_dsi_msg *msg)
{
const u8 *dsi_buf;
if (!packet || !msg)
return -EINVAL;
@@ -458,13 +456,6 @@ int mipi_dsi_create_packet(struct mipi_dsi_packet *packet,
if (msg->channel > 3)
return -EINVAL;
dsi_buf = msg->tx_buf;
if ((dsi_buf[0] == MIPI_DCS_READ_MEMORY_START) ||
(dsi_buf[0] == MIPI_DCS_READ_MEMORY_CONTINUE)) {
pr_debug("%s: Invalid dsi_cmd=0x%4x\n", __func__, dsi_buf[0]);
return -EINVAL;
}
memset(packet, 0, sizeof(*packet));
packet->header[2] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f);