From nobody Tue Jun 16 04:50:43 2026 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (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 B13DC2C028F for ; Thu, 16 Apr 2026 07:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776325172; cv=none; b=GOOG0TOk0RdWMQMg+VwnIkWE7JGVyq1zD5WYyADzuThUIwIECASV2XcUlCjDj75j3YG6SB/187h82tfM6mvEfqNpiShJuarF/Q/RrePUIfKPwB6P1BuyTiFa5CqLJTHFZcHGnF2tAwKS7z62CIcz1I1m+6S1eDpEYP2f56MCe9w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776325172; c=relaxed/simple; bh=SuuukJ9w3AsS6fW/xaUfzmJoDb35F7gdl3aoHgi0LDw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DdwfG44o8fqcIQCGph0oq+sqbOxunjvgZU1F1UJ8Z8RO+/mcj2jnjRQvhsbYWI3lTDtI9b1DFC28mLRjhcHP/QCIxllqHysLtzU3iRFX96NkI7pvGkcpPJ05ZFtIypUQocjE3IxSiwtcWBAY6Jr5Ah3HC6YVtnHP1C+aT8QgqNw= 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=M/bvA77I; arc=none smtp.client-ip=209.85.216.44 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="M/bvA77I" Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-354a18c48b5so6713473a91.1 for ; Thu, 16 Apr 2026 00:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776325171; x=1776929971; 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=Kd33L34PL49HjLxsixOFb8JXjhyLJWELYvYdT4Ym4XY=; b=M/bvA77IRYha0uignVYMpzu6ucX+jNCTzRFZ1tPmdGZwHH0FPsRorkGcZHx8+21ms2 DDhCUL9/nRmG9Sp8bm8VaXn2PSBrnptx+u9H/KblPyzqMjNTOB+nVgpecqDdtpsQKNae gyU0DCwaWhlcW8/V7LgFaKyiNhdf/03jaSzruG/S+Pc+x3VrliVgcJK7F7Rcf8QVkiog yO5we2YycvWyfp0yWWZh88cYCDEv+0XiVgQ4xjyYfCL0edWyyIF+29xu69//jetikk46 xgw+QtGetndDPFz4795QFv02JowpA0bDUzEN03W3W2khaPbF4wp1zyla69g1k2t/OfIS tW3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776325171; x=1776929971; 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=Kd33L34PL49HjLxsixOFb8JXjhyLJWELYvYdT4Ym4XY=; b=Fzug77+JG2X5rwHdLIDc2b9sod3SgSaUeNVrEPHcTfcOCePgO6WZykaFCvINVH31io mO48UtcS68Iyf7d5Rz7eLkU0H95olj6jQzAj9EdcHk5F3Iinkc5dp7f6ZVopq0ZejfAY ihIjFQPLDxTBdg/cnsukjEcCVab/mud415pijS6dNYF57BVyJ7Pl+uOrc/svN9etOoGf N0eS61dSWAsCtau0dvhHy6TarP30iRMjuIxoLcSykYUdDazxNfBfvPopx2vQ6oSuOP+T NN47dTmQOvEwBKSB4JrJ21pfw0jAxTpJEjnj+Pg6HRV5Um3QhRpxbPiWfVsk3GNx62aa gsTQ== X-Forwarded-Encrypted: i=1; AFNElJ9AEX/Z5BrFtOpr86bmGOrH1adQnbvizBQuTRLE1hzf3TQXP8CWYpt9RmiYZBD516b5JVBot8+1A5L2fQ0=@vger.kernel.org X-Gm-Message-State: AOJu0YxaxmUJzPOUky7rdnSPFjmngNahLv0izKxCbukxqjW1LkzOn788 gTTeQmtfUHtJv4wVxwOEUK1jUEwd8gESEPkL2pJNDq04UP2h1cC4TqNZ X-Gm-Gg: AeBDietppptnFcDwRNLE1cWDCoAaW6aXBD6PQQidwxTYBMbvVxSkuzx5vyphEC3Ci9u NB1ob2gCORFp3Bistn2H91m/kF8XJ6f3fN9fhOiwUxzfuAk6ImqWvahx4UJg+MtCvJ7Mfv86rNN IoZW4q7hXq3YMEx1BNtAEcF4o7xE/lDriloDR3HTmGP71MDuCeyY24n0rRh7Vgf6lHqnBqr+hjq Y6QqL4gSvHCNLZRibKV5ybeG5YYgOXyQEA9pbq6WHBwdBqcoFuRrvBwQD/7oj99Z3Dl9sSIVphV E3T67a/864avRig/fj8hCj5bEcPp9/aEnZLqYUdvoeJIIyl+lmWMh19fME228paQDBEWZnXNIh3 laZ+qGnWRg4+ZXS6r8BZcUsi6//n0x3dAW/HYNLHf41nLN32MYbVx6sNmiT5IPf+Y+6GA13ceav kKqwFlDQt3wgxV3YSKfy7Tfpr1aIIjm9S1PaHPukC6rTuhJqaCKcD/goM= X-Received: by 2002:a17:90b:1d8a:b0:35e:3e86:e2d3 with SMTP id 98e67ed59e1d1-35e42777a47mr26140311a91.10.1776325170954; Thu, 16 Apr 2026 00:39:30 -0700 (PDT) Received: from fedoraemon.neon-universe.ts.net ([2406:7400:11d:a9dc:9a14:72eb:1a60:868a]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-36132d9d228sm1735245a91.10.2026.04.16.00.39.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2026 00:39:30 -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 v4 1/2] drm/mipi-dsi: add mipi_dsi_shutdown_peripheral_multi Date: Thu, 16 Apr 2026 13:07:21 +0530 Message-ID: <20260416073722.719036-2-avinal.xlvii@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260416073722.719036-1-avinal.xlvii@gmail.com> References: <20260416073722.719036-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 --- 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..911e7ca5b9d5 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 serial 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 Tue Jun 16 04:50:43 2026 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 8AF2233D503 for ; Thu, 16 Apr 2026 07:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776325178; cv=none; b=LAs800YPilMN0S7r/6sSBY3zZINZ3CN9l0gz6Sq2d6+qCgav6eP5T2dOTyzwAit2qSaX6jOzWuwZqiMCo5L8lfE1HZwBwcYl/uLnhJVCgw59mlAyoPwCWtkI+JmjauPBnGcOUFtnU+bFLhxwgKXuY9NVWDhi0QdA1qz24V67YxE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776325178; c=relaxed/simple; bh=458qDiOiun6HGUzAdA6JMgWumqgnl65oPmucy34z/P8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n17AYFIj3ltm54aZZsMV/v66R6BNqH9S1oGlIPmhvlxpMu7zq8LYdEmTWLhj33YcI394M1I+Qnba54OMwnF+z/5PMWHjA8VnvptERwjbQYY0AKpS6Sic/j4XMWS0ao/QZXO/5Sdypxloxb3z3Hqhp1S2qHGI+dxBElQFsag6yY4= 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=B678ZcAm; arc=none smtp.client-ip=209.85.216.45 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="B678ZcAm" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-35da9692ec3so6814769a91.1 for ; Thu, 16 Apr 2026 00:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776325177; x=1776929977; 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=jCegayYB0PENmbMOz7Ts5R4TPK8wv3h+gE07w9piCso=; b=B678ZcAm3RP4Ywh4XVZthhLitb0nLtrQkofPkZ4poyZWvWu0/RPMIrXdFa+97LfmQo b20ULyN4w37cXGBYrdNbyykcgkvX1KEEZq5HSbSDPQQ94JB/yoT7lFUZHADWy6ByLX+u kK4kD3smYXpFeprfm6GjK4OrtRqhyOliILhlM/Vc0vusLdCZ9G9SuD1SS4TfhcY37rGh Ta8B6xaQyWpfVx+Aw35Nx4EH/T88J1vBxzmox3AQbtBtDUN5jZT0CTyxa5TfEDAP+ggv j/Z2ge1RajuCQMPlt0AJPI5Lbqxw+zMKaLthujfERvMLq7p5cvMhW/14C4H+o927UqAu 6vKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776325177; x=1776929977; 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=jCegayYB0PENmbMOz7Ts5R4TPK8wv3h+gE07w9piCso=; b=E2bZ2Wx6dfuEXrb28jWE5vkofkg7y0ciVEPd+QDPuUf08t1KBELckDD3K1bm0K2LE3 XiLOHJfqzzLP+mqYw64r68EF0dKAiI0Lc98YpnXz7WGxfzQ5/2m9MrYUM+QTc2XhVELO 2jCazGhnl4XY1IKHigqOpAr6HrL3THNzkt6vKtL0wBaSdlFiPKN/minmTYGXzG0gUjdM 2qfFhwzYKr/HYSJ+0d8N86SKxMn9wWbWxGsDOQNZs0TGeSLeiKt8kKqTKnfoF5yIUfWh 4WIwPCUc+58hjQ4XV1AQnlRjezPe2B1ujmND4wrLQrpGkSGM2iWF5Hx+W5Nrn+I+/eg3 g0Qw== X-Forwarded-Encrypted: i=1; AFNElJ9aq62vAY0nG3AqXUqTaEMsH5EAR8kVD8FuTLUMB4sl+zdtY3trKiUUATpJ0YOy6lwYc3rN35tqJm6DapE=@vger.kernel.org X-Gm-Message-State: AOJu0YysuTusyUZJs+omZepJIbErXd35ZHc3UVQ22+bGxNqB2XSOUJf9 YWZ9vCb4myaxh2TX7D97bkQ4Mg0mI55w+bVpuBCY9aeOXDggthGUke1R X-Gm-Gg: AeBDieugSwowE/rLwHEuzNgZJQnymx+w+RnAnEXdFQJ9xpXv4BCwEZPt4EPW7xgczLp Sdi9RriTtsbvA2rEphfekeaFz2AAy8IOsRlNhpJxwFs0tNJp99EdqbIhmHrRj3u6SdCPj89hoID p15h/p3MrRk4Jph7rR+0qzI6xiOwBLgGbl8tuY1ejvIQC4Xl+7NZ7zaleI10ee0zpdLxtvwi5MZ ENfZwlcSH/CC6mLWBH6NS9xC1SYWDXWvaQb+bp39T3vBwCFlCxEjpqnczY6+o6JW5N4evN79xPX eT+6zQ5S6P6AVVMwd2YAreERKXNnGFHvOzm4C3WX10bdokn0KKKO+WSe2fOzqXqWSaiiZGxjjkk 6RwrrHA05QvBiuLNvP/hMLobbZv/fIOVeYacwk1sMEcJ+eEL4z2bXzcomuqWi2Rf7iQeXRWMsOm 8LNEexeSmu/MMD/hpVkwJgUzGweZcQ/gIN4J6UcIpQSoZkLYaUshp89K7snfGmEqUy5g== X-Received: by 2002:a17:90b:288f:b0:35b:9b77:d7c with SMTP id 98e67ed59e1d1-35e4285338cmr26207579a91.14.1776325176898; Thu, 16 Apr 2026 00:39:36 -0700 (PDT) Received: from fedoraemon.neon-universe.ts.net ([2406:7400:11d:a9dc:9a14:72eb:1a60:868a]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-36132d9d228sm1735245a91.10.2026.04.16.00.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2026 00:39:36 -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 v4 2/2] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions Date: Thu, 16 Apr 2026 13:07:22 +0530 Message-ID: <20260416073722.719036-3-avinal.xlvii@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260416073722.719036-1-avinal.xlvii@gmail.com> References: <20260416073722.719036-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" Changes the panasonic-vvx10f034n00 panel to multi style functions for improved error handling and removes redundant error printout. Signed-off-by: Avinal Kumar --- .../gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c b/drivers= /gpu/drm/panel/panel-panasonic-vvx10f034n00.c index 3c3308fc55df..f9e547c8b1b8 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) @@ -95,7 +104,6 @@ static int wuxga_nt_panel_prepare(struct drm_panel *pane= l) =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; } =20 --=20 2.53.0