From nobody Fri Apr 17 21:53:58 2026 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72C392D73A0 for ; Fri, 17 Apr 2026 06:19:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776406749; cv=none; b=uFGIQUWBQ2IaK5fNgCiJP9GtDFVnbe7/cau+VbzF0ZoVeMJ7O9qRm6EyfZkLOC0NfLJS4weFkfxSPkIX5YdchcveUBmTNP4uWoByY6GvnltKv2d49Z1/gR7b5etrfw8RdGLSStePMrnoBFJ4n0bKRAc/2lP0zsbqRObni0Jgky0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776406749; c=relaxed/simple; bh=Gcyr4I7S3HYRv59bxfRVqp7+gPtnRMZ8tl+aVPh/R48=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GJ3yPdlI6IVHVON4CKU2K5yvWjJw1jCRd+BtyeI370o4KTi4bPpFCW9I8rIrKQQ0TzqJlFX9YR5RbKsnL1c10z67FOW4FWkWxGDeHo+fFSzG4KkLoiyDPEYigpEU5HGLMJeRqxnPmOFeHqq5hpdtX2aWnT7NxtsX9jJdq2w5Tfo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XCsoaWiq; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XCsoaWiq" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2a9296b3926so1757215ad.1 for ; Thu, 16 Apr 2026 23:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776406748; x=1777011548; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=51ANuS+IBW0WksB7NRSMxwOMBhRVSyM31rcxOrdTixs=; b=XCsoaWiqUJk6FcZ0wvOXiwElmPZbLBhYkPBOwVRPdx4WWYaRiIZ5swLOZQhRYDFypl kW8CO2xmemCOgQhvQrSDl/oLDYcIEVmzNbRX7YIXXrECULrk6sRYjLWKwgLhp32XbFuI j6mH/ZFYH2GN/N+JNTvEZV8RaMaj9O58jqmihCl5hrRVZGLasqrYGH9KZLEs7gQvNkbZ uu1eazvCVP2uGXgNDaMlyr5K3bCx3aMpDBN0WnHahVQKrmwVGrTiGeUKhqHeEb3v4Q/Q yM94glPb1Jn4a69qvwXmUmoj9c/85dH6mOx/eFCuPUeUIu79OtUhkTktWTvO4QoSFHDh HpEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776406748; x=1777011548; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=51ANuS+IBW0WksB7NRSMxwOMBhRVSyM31rcxOrdTixs=; b=tCsfM/2ELcQ8DY2NOePxsbm+FaiVbLRDto5VRfMJsohbXuzDL3T+SlPeVX4hjQjHla lMKGXS96+JLVGC8e7TiNKq384sNFvc8dLurYTJsAXwc26N4NvL3GQrfxQGMrAL1ywkt7 mse+VPIdnT3Nx1nhsARlQilVOsNFpviLSExNPlflAaPffECWiS3ocDT4bZl+HjUD3Hr1 S1lY9lEncUDXJNJKKm6ZdmQCuA49YFDwrS2FG+BMHIG38G2MYLqYA8iUQkvBX42jZidZ /2qbtfCpv/yAiQ/TaTRWrES7GDNmGdYuZiHXQn+yy+3Hw6kGOABZvyO49nEYTOM2tT/B fBjg== X-Forwarded-Encrypted: i=1; AFNElJ/k6yTAXXPI842eF7QKNMm+c0ygOBQK/gp0Vl3pU7Ly8teVlFPG1/0rBydklDu5CSsWQM7zRypZCYYIOrQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyrpnVT1jMcNUkQMsS5kOLD3U4iM99c+1fM47F8g2T26QMfTBTk Oof/shefcZWIr7i4OPtYJ6nKGZtYjHQupQupk3B9Ly931jdo42WeMRJS X-Gm-Gg: AeBDieuPoM+P99QrmoygjYZE54FQpB+f0O2JgGcsblVYMG5150WfwO0y3yfY7+N0XAN +8vVOpaV6MmOwzPJEtYe/BTOPELHT8rOGtEPqiWp7KQxG6+EVKxgtucCGPWhvaEi/HMu2nDKbim O8aO6NHCQAoUwPUAIeSxhTfTYR8LePd/OaOzx2KXttFm+6VyNnOCqlvD+W3XI2As7P6e/DvGKIB cxNPBteqLlNxi7SdpzeK9BMI/m9ZbRQvmCxS0fgeQpq3mlHN8I7x9f/U1rWi+cUmgCjtco/YorS 5agrQhrMiww8vAxpOErpgpikup/2zb08BBnSQp8TlqLAvRVdYkkfKF07Yj3EEvp/r+KUqYLOVZx 8zY29zsx2s11VKcf5w9RN0YUGHab/WjUftKMVvqOdoY6eSKfnlVA6NT1G9W6+sBeNt2hhj77SbM uRllu9NCkNSkW+zHkhnh1JcSdQaohuW9rJaHB//miUSriJCUQnfbaLu5MrUdk+pSQ8Mg== X-Received: by 2002:a17:902:cec6:b0:2b2:49a7:a5ca with SMTP id d9443c01a7336-2b5f9e8f561mr15384865ad.5.1776406747608; Thu, 16 Apr 2026 23:19:07 -0700 (PDT) Received: from fedoraemon.neon-universe.ts.net ([2406:7400:11d:a9dc:9a14:72eb:1a60:868a]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fab40786sm9046225ad.79.2026.04.16.23.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2026 23:19:07 -0700 (PDT) From: Avinal Kumar To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, neil.armstrong@linaro.org, dianders@chromium.org Cc: lumag@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch Subject: [PATCH v5 1/2] drm/mipi-dsi: add mipi_dsi_shutdown_peripheral_multi Date: Fri, 17 Apr 2026 11:48:41 +0530 Message-ID: <20260417061842.66631-2-avinal.xlvii@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260417061842.66631-1-avinal.xlvii@gmail.com> References: <20260417061842.66631-1-avinal.xlvii@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add mipi_dsi_shutdown_peripheral_multi function and mark mipi_dsi_shutdown_peripheral function as deprecated. Signed-off-by: Avinal Kumar Reviewed-by: Douglas Anderson Reviewed-by: Neil Armstrong --- drivers/gpu/drm/drm_mipi_dsi.c | 28 ++++++++++++++++++++++++++++ include/drm/drm_mipi_dsi.h | 1 + 2 files changed, 29 insertions(+) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 0390e14d3157..3ac1dd5ad640 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -587,6 +587,9 @@ EXPORT_SYMBOL(mipi_dsi_create_packet); * mipi_dsi_shutdown_peripheral() - sends a Shutdown Peripheral command * @dsi: DSI peripheral device * + * This function is deprecated. Use mipi_dsi_shutdown_peripheral_multi() + * instead. + * * Return: 0 on success or a negative error code on failure. */ int mipi_dsi_shutdown_peripheral(struct mipi_dsi_device *dsi) @@ -1980,6 +1983,31 @@ void mipi_dsi_dcs_set_tear_scanline_multi(struct mip= i_dsi_multi_context *ctx, } EXPORT_SYMBOL(mipi_dsi_dcs_set_tear_scanline_multi); =20 +/** + * mipi_dsi_shutdown_peripheral_multi() - sends a Shutdown Peripheral comm= and + * @ctx: Context for multiple DSI transactions + * + * Like mipi_dsi_shutdown_peripheral() but deals with errors in a way that + * makes it convenient to make several calls in a row. + */ +void mipi_dsi_shutdown_peripheral_multi(struct mipi_dsi_multi_context *ctx) +{ + struct mipi_dsi_device *dsi =3D ctx->dsi; + struct device *dev =3D &dsi->dev; + int ret; + + if (ctx->accum_err) + return; + + ret =3D mipi_dsi_shutdown_peripheral(dsi); + if (ret < 0) { + ctx->accum_err =3D ret; + dev_err(dev, "Failed to shutdown peripheral: %d\n", + ctx->accum_err); + } +} +EXPORT_SYMBOL(mipi_dsi_shutdown_peripheral_multi); + static int mipi_dsi_drv_probe(struct device *dev) { struct mipi_dsi_driver *drv =3D to_mipi_dsi_driver(dev->driver); diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index 2ab651a36115..b429acde4f71 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -393,6 +393,7 @@ void mipi_dsi_dcs_set_page_address_multi(struct mipi_ds= i_multi_context *ctx, void mipi_dsi_dcs_set_tear_scanline_multi(struct mipi_dsi_multi_context *c= tx, u16 scanline); void mipi_dsi_dcs_set_tear_off_multi(struct mipi_dsi_multi_context *ctx); +void mipi_dsi_shutdown_peripheral_multi(struct mipi_dsi_multi_context *ctx= ); =20 /** * mipi_dsi_generic_write_seq_multi - transmit data using a generic write = packet --=20 2.53.0 From nobody Fri Apr 17 21:53:58 2026 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E38A236E48D for ; Fri, 17 Apr 2026 06:19:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776406761; cv=none; b=tQFvX2hm/UcUNNuRnwZhBcEdkRzwf4dnpch8wk/ZFCOTiV2hElCW9ndo4jneDyNsEUkY/5JbFtbDIyTfDTgTDG810FqHX4xe2/1D9+VJd/wXV9yZlNGqGdKn6D9fthOYSC0hAd722Hvk+ikEyaiNw+kJoOdWztjxaa3zMKRwPew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776406761; c=relaxed/simple; bh=U7+8ILT8R/U7hhofVinaFnX9/3lcLH8xsZwQEUpz7SQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UJEpbZENHJkK5Jwq8u4BVE+AJ02HVYh1JCnNVje2fkzCO8+kJozbWMfU3PuV4fknwujTDn0MucgGejmAS9HnoZIyFxL5ephgkmA3VQfBRwVIB7DqzFY6uXWyB5p0tm7ghX2aHwrJH7t/TmOyCvP+JG1fmz25Pu4/3IIaMSzyoRs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NVFzbdzc; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NVFzbdzc" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2b2429f98d0so1541215ad.2 for ; Thu, 16 Apr 2026 23:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776406758; x=1777011558; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6ce4kj1e/j21mTp4sR9FlUv6X17cBMM3lqzUbVzs/6I=; b=NVFzbdzcefq4SINBgirBd7W24w7aNFOHt2ZAapLgRKYXLKhH+9UNU1faboQ81d0qGs nV4WQ6gJh1iZtQARKyPnCYMMQCbOfYDRxM5FXv1eU9x2SFMcD8QG8WHK6mDJJcde+IHd IR168c11Qsapf3pBhKWk4kWUZbeEEHiv641x6hpQlv2/X80wRquJ5RwgVer0Zk1Dz025 rBUDa54nny0mA1aQcawFtIYVXVFcFWG3H3GD1rQ7OOeP/rfSsw9qVFgA0EstWcsGW0ju aCBlECBMDV8J2sjjUlKw9FDKaUNWFeC/trs9XizuqMiMcZ1k0iI7ZGGyctm1hI48ilMY tg8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776406758; x=1777011558; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6ce4kj1e/j21mTp4sR9FlUv6X17cBMM3lqzUbVzs/6I=; b=Ft/tA3z/QMvkWs+nBsS3kOPVDIkMYvyIKyk4Hvs7vUeMelb8PTIpeeHniXitum1XEv wCt2Id+n+VerEcL6ueOokad+7BkgdIoF6qI/JceG9hco5FukpxmpyW5SBJ+YEF33ee1E 1hpoTCoH5E3QiIow3IUxOefYsY495ZoawXsMLg5QnyDQDk9ro4PiXCVmrYzO/652Kfx3 BILutbn5iu2Xu9CGb0bHHtqIdcuU4Rqztv4WLxSWsDCYcLRb79uJbvYEw4pRScyrH3nF d62p74YDqOf0Eiwub2jXwi2pqYlJfOsyxASHV0uTbT3yjmu3ghhxdkpGIaejMJcL88Ay RQWw== X-Forwarded-Encrypted: i=1; AFNElJ/GDjFxuRX2eHRoYSGta+lm0Dx+zHFuGr9WoqaxfztGaRYzUbZRovm2mTu9gaCqtbGYXqlGG9c0caq+F4Y=@vger.kernel.org X-Gm-Message-State: AOJu0Yy+ARfVdWP7buOeLWHDoScm+X39yFfDAys0vHsZjeHNF3JTwwFm 08+qsGCNQZBr+6/hlEGJTF5yyGwMavAXE5cs8eNCILytEZFg5P02nmNp X-Gm-Gg: AeBDiesysWgKmlCsEEdA8IcvW5O3vRYo3ZXWaP5PBteNxJduG7XjN/Fh0pk35lpFofd jXdIFq3NUaAFA6qIto7oz2tgzZVt02TA0f5/v4+UO8rCoIiiKeWNXffzprSh/GmkjntR4dMAq+b 7pSVAauMnEKJb5Ir/v1GoXwNW/JkbQEdXPF3aWOXg0hZjg5DuE9fpO6v1OdvrtCEbwHy1f7CjXk xZ9jRs6GEpcAADvfHkRqnYeyXgEZkUTSv0EPmas7kPOPa1iO4NKFiFaz5ghQPh0GcYmnWBFcYBB D10dFUaow00rspYdw0M9NG4trHGKMMmH9gmTcVebRgKpFwQUvt258XVB8hAFp9MsRUdvJYMYPdo V56njLNynlxdrffDvVFH+wx+392FWUwMWRQYzgolzGJMEJhErTdFvryTg/ozAqunhWq5kl02SdD 4ivbYMM4GmROCyPICpmzYB6zH8vKYVuxT9tLSu/TCqIePkJ9+Pg0YlxbmzQelsmbY3WSPVaxlCn uUZ X-Received: by 2002:a17:902:7585:b0:2b2:5704:5715 with SMTP id d9443c01a7336-2b5f9eaea6bmr9483285ad.15.1776406758105; Thu, 16 Apr 2026 23:19:18 -0700 (PDT) Received: from fedoraemon.neon-universe.ts.net ([2406:7400:11d:a9dc:9a14:72eb:1a60:868a]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fab40786sm9046225ad.79.2026.04.16.23.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2026 23:19:17 -0700 (PDT) From: Avinal Kumar To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, neil.armstrong@linaro.org, dianders@chromium.org Cc: lumag@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch Subject: [PATCH v5 2/2] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions Date: Fri, 17 Apr 2026 11:48:42 +0530 Message-ID: <20260417061842.66631-3-avinal.xlvii@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260417061842.66631-1-avinal.xlvii@gmail.com> References: <20260417061842.66631-1-avinal.xlvii@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Change the panasonic-vvx10f034n00 panel to multi style functions for improved error handling and remove redundant error printout. Signed-off-by: Avinal Kumar Reviewed-by: Douglas Anderson --- .../drm/panel/panel-panasonic-vvx10f034n00.c | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c b/drivers= /gpu/drm/panel/panel-panasonic-vvx10f034n00.c index 3c3308fc55df..d21d93a0700e 100644 --- a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +++ b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c @@ -44,14 +44,23 @@ static inline struct wuxga_nt_panel *to_wuxga_nt_panel(= struct drm_panel *panel) =20 static int wuxga_nt_panel_on(struct wuxga_nt_panel *wuxga_nt) { - return mipi_dsi_turn_on_peripheral(wuxga_nt->dsi); + struct mipi_dsi_multi_context dsi_ctx =3D { + .dsi =3D wuxga_nt->dsi + }; + + mipi_dsi_turn_on_peripheral_multi(&dsi_ctx); + return dsi_ctx.accum_err; } =20 static int wuxga_nt_panel_disable(struct drm_panel *panel) { struct wuxga_nt_panel *wuxga_nt =3D to_wuxga_nt_panel(panel); + struct mipi_dsi_multi_context dsi_ctx =3D { + .dsi =3D wuxga_nt->dsi + }; =20 - return mipi_dsi_shutdown_peripheral(wuxga_nt->dsi); + mipi_dsi_shutdown_peripheral_multi(&dsi_ctx); + return dsi_ctx.accum_err; } =20 static int wuxga_nt_panel_unprepare(struct drm_panel *panel) @@ -94,15 +103,8 @@ static int wuxga_nt_panel_prepare(struct drm_panel *pan= el) msleep(250); =20 ret =3D wuxga_nt_panel_on(wuxga_nt); - if (ret < 0) { - dev_err(panel->dev, "failed to set panel on: %d\n", ret); - goto poweroff; - } - - return 0; - -poweroff: - regulator_disable(wuxga_nt->supply); + if (ret < 0) + regulator_disable(wuxga_nt->supply); =20 return ret; } --=20 2.53.0