From nobody Sun Feb 8 15:01:34 2026 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EA0536920C for ; Thu, 22 Jan 2026 02:29:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.3 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769048984; cv=none; b=pQEFuKXniV4fU4BBF55SU81uUuKAvo9udVB6iWUfaPCbBILJCUUFszttTT7TUm7yaXaz0MuhyZYAq9VXZVSKon25sAqUiiBslgsfj1YJWrS36H++hUmHgolYimvT7ORw9SVGnejsZozd5hvcioyb+wYQbN9oXt73asLM+GVUNTQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769048984; c=relaxed/simple; bh=zL0zY4ZmFjzfrZL/pxZEZTbG5/sYxrz8TpIs5h0uGcA=; h=From:To:Cc:Subject:Date:Message-Id; b=VIsCTZqQie3fE9XFZWh6UuUxqnk/0N6QTmZiflJ0RiaVdFPYH95oGtNg7Z2CYPOgGQ/DIXoDI/c1dW5CGJEaLhqynePRg8LZ8IOCT/dqatD8ilTmWIdfveAA4TU7gnzGxtvw9kNuiJcrm7dionMHtgJV5B4WkW8Nk1ieYFb0ff0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=T3eJwNJX; arc=none smtp.client-ip=220.197.31.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="T3eJwNJX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id; bh=HckW+XcKUr0A8G+ DPWEvpd+s3/zfSfvl1KJHrkT99QM=; b=T3eJwNJXXYrtytKuPWicYC62ioHxOGF UUfTu9tZyYttN2JHvPjPzvZL5HQOvW7KzleS0bIuh4ygo2g5hhmlrkc8NfG49MyB vuJlpr3sG4qjdOz9xu8VM1sC8eDnuR3EHOr4f6SURejvAOjyKSRdvoNw7J9iXbVt iGH1OoYSVye8= Received: from 163.com (unknown []) by gzga-smtp-mtada-g0-3 (Coremail) with SMTP id _____wCHn_5Xi3FpkZzXHg--.1775S2; Thu, 22 Jan 2026 10:28:40 +0800 (CST) From: shu.sansan@163.com To: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org Cc: laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, guofu wan , guofu wan Subject: [PATCH] drm:dw-mipi-dsi: avoid invalidating config by removing dw_mipi_dsi_set_mode Date: Wed, 21 Jan 2026 18:28:03 -0800 Message-Id: <20260122022803.6963-1-shu.sansan@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: _____wCHn_5Xi3FpkZzXHg--.1775S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Kr4UtryDJw1UJw45Zr4xZwb_yoW8GF45pF WUGw18Kry8tFsFqa4xCFW8ZF98Ja9xJayrCrWUG34xZ3Wq9F1jyr1qkFW3Gr9YgFW8Zr1S v393XryfXFn7uF7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pizRRtUUUUU= X-CM-SenderInfo: xvkxh2pdqvt0i6rwjhhfrp/xtbC2xivy2lxi1jIzwAA3r Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: guofu wan The dw_mipi_dsi_set_mode() function performs a DSI power-off operation via dsi_write(dsi, DSI_PWR_UP, RESET), which invalidates all previously applied configurations. Since the original code already handles the command mode configuration within dw_mipi_dsi_command_mode_config(), re-invoking the set_mode function is redundant and counterproductive. Removing this call ensures that the driver directly executes dsi_write(dsi, DSI_PWR_UP, POWERUP), preserving the existing settings. Signed-off-by: guofu wan --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/dr= m/bridge/synopsys/dw-mipi-dsi.c index 8fc2e282ff11..b02373f16bed 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -1015,8 +1015,7 @@ static void dw_mipi_dsi_mode_set(struct dw_mipi_dsi *= dsi, =20 dw_mipi_dsi_wait_for_two_frames(adjusted_mode); =20 - /* Switch to cmd mode for panel-bridge pre_enable & panel prepare */ - dw_mipi_dsi_set_mode(dsi, 0); + dsi_write(dsi, DSI_PWR_UP, POWERUP); =20 if (phy_ops->power_on) phy_ops->power_on(dsi->plat_data->priv_data); --=20 2.17.1