From be2a824cdce91027e58bcfcc310d8a7b759356f6 Mon Sep 17 00:00:00 2001 From: stic-server-open <1138705738@qq.com> Date: Mon, 27 Mar 2023 00:06:41 +0800 Subject: [PATCH] drivers: gpu: drm: Remove duplicate command flag changes * Delete redundant changes from xiaomi, duplicated with commit efa9024e. Test: On the polaris device, switch the screen 10 times to adjust the brightness without any problem. Fixes: 852c9ebb ("drivers: gpu: drm: Import Xiaomi changes") Change-Id: Ie686fc52ebb051ea7da6a80cca60dfa278b751ee --- drivers/gpu/drm/drm_mipi_dsi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 9c64efa5c0a1..301cf100a4f1 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -364,8 +364,6 @@ static ssize_t mipi_dsi_device_transfer(struct mipi_dsi_device *dsi, msg->flags |= MIPI_DSI_MSG_USE_LPM; msg->flags |= MIPI_DSI_MSG_LASTCOMMAND; - msg->flags |= MIPI_DSI_MSG_LASTCOMMAND; - return ops->transfer(dsi->host, msg); }