From nobody Sun Feb 8 01:31:23 2026 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (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 E9A3C31A051 for ; Fri, 9 Jan 2026 15:46:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767973604; cv=none; b=Pe4lY2i5vF11JAah/qPBtG0Uvs6TuW5jMXyyDCzrSU5Y5SFMxYfLeQhl2NMRXVIre3XOAOxpXs40Me0idgHDm+MBHOsk8XHfCfHj+A/sm64Kygw8JyaYRXT4ATO5cB2umVSas0bAaHJhsp7LcTyGu4aNydMXuWrV2n0B4joVrZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767973604; c=relaxed/simple; bh=4q3prGW4JUjHVB4IVlvb5WsYPcnrot+/6I23ixO9UZo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HVgSkR7avrYcC2WIw4T/vXMGZ4V5928wgSZQ0/U5Pmx0A7/WYB4B9sFCPEpt8cb+tgih8u9u5mbvRz5mizcJpC2XZM85HHmLlBvO1rJt/YOpYVuSiNcyv3nTIqRa7emulP3kvwr16JjJWRYIorX8NSzeVavASLwHelGniKSkIxI= 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=DESxBkEB; arc=none smtp.client-ip=209.85.215.170 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="DESxBkEB" Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-c227206e6dcso2812694a12.2 for ; Fri, 09 Jan 2026 07:46:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767973602; x=1768578402; 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=XrlduJZJPMbIa1RfsQnFtGNBelRs3n9wJNobxuDPXfM=; b=DESxBkEBUrcFR8t7esZDmfwzrMQtHmkVcsAlHlmnGbX9/KGHkCKvG2P2MaBbDTEXVe OLOW/jAfH81Hh5vRViARLWlze17XGMu+GL/tOzz/H5ZZ6QpZrh+uJrQ5iRxWmyYXzkgH tURDMCgCOzcj8noUWjpcTziCq86cePkQ65twDfHAVXrLWCnvscOClTTQfbxFzNkMotQt WPr7e7qh+ptP/BpR4y2ZYsTlwgC52cdpqe1bChnpf90IAmp7ClUO7gq4dTTBkYoWZDFw LAxZ+il5kQrTHsVNdALJxiu/Plv7R3Nxt0PcpckxRjlXx7w7ggwRJaHDNLhdeIIV08l3 +BnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767973602; x=1768578402; 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=XrlduJZJPMbIa1RfsQnFtGNBelRs3n9wJNobxuDPXfM=; b=rrW917XkGpRj2T4+h4ql6RL62qMZIQLkhPRj3kuvs6b3LpbGfdRVWnRC5AWUhJxGY7 QzIMDcRUNJZakK2VOCFKS+8dpIhG65ksH0LRKZLT6KCXP20p8KeZAnXUELhIRyer9p+E bVFWqHCtYfkVKbr6CAzBwhd4eQin+Vvu9TSnLgjGHBul94LeljONZ9QuY1BWYZ/++l7Y xd2kYwaAHgiohrwAEdn5cfTSrXmK496duNTrw3XsK+hIc2JOSatpSFbSZdjy4xMweXxK 1dFoheb0M6XnSvkpHzCNuwo/dYNOdTFxekj12ysmlaXyx1Dl+/Q+4lYsqUWC6dFEHa14 E1MA== X-Gm-Message-State: AOJu0Yz2dDZQMfUHB4f/BPC4jZOn3WJLCwRz9F6bdg8klW8ongnPCAqP NcUZizZbJQK5eVMxGI+3ScsicJgKJ7Vv8MUJLmwu6DET4p6c+L0UpzMQ X-Gm-Gg: AY/fxX6R1kHoHsrJVnAxG4nmsTkHLb+49iFiW8dX353vxuGse2AhNvnU50Z6MLnKtiM FLosv4uUKzpcr27UCRmGBdnET07whMUmBiralhFErmkd3ml6ZX5bIjtnUltuP89yTV8M6jl77ZL xJeJEnJuPit95N93NV4CohLCs8fV+TLSBB99pptY+WNfhTTcAPmPecYaT5JWeJZCBLWqSk1RXwk ek5BxzkWr5+JZ4224gMxb12MvHUQQwVCPTBA1dyvMaCKVPGG9SE4QR1lFS5Ny2/P/3J6rn+ApAV Uu9RFtJMPQZQqO1bh1eD7F2BfBwOvC+lEULTbq3rit5PIrPkqLH0mmnMBHBhGkyiaO+wkVHr54k soa1DvzPoEDOiO9ExUJbZzLMyevlKxB+nJ3rTECqSmpKhz/mcKiRai7IyILS65DwQro78fXRa1z Ylm2vkwB1+rWq3c6Q92N5MBpioulj1g1Yr5+oSZwyNv/0= X-Google-Smtp-Source: AGHT+IFlA/Jv+xISGETz+tPoNPLoRIGvtKBemHAHeqLT8VlbscyA7TRtr1fOfUkpwnMtemxAoRXrQA== X-Received: by 2002:a17:902:f54f:b0:299:bda7:ae3c with SMTP id d9443c01a7336-2a3ee428923mr96108875ad.14.1767973602077; Fri, 09 Jan 2026 07:46:42 -0800 (PST) Received: from fedoraemon.neon-universe.ts.net ([2406:7400:11d:8d1e:1613:9777:a803:43fd]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a3e3ba03f9sm108166395ad.0.2026.01.09.07.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jan 2026 07:46:41 -0800 (PST) From: Avinal Kumar To: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, neil.armstrong@linaro.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch Subject: [PATCH 1/2] drm/mipi-dsi: add mipi_dsi_shutdown_peripheral_multi Date: Fri, 9 Jan 2026 21:11:56 +0530 Message-ID: <20260109154157.33592-2-avinal.xlvii@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109154157.33592-1-avinal.xlvii@gmail.com> References: <20260109154157.33592-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 fucntion as deprecated. Signed-off-by: Avinal Kumar --- 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 a712e177b350..2fed50172a44 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 convienient to make seeral 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 3aba7b380c8d..19ccdf5eeb5f 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -389,6 +389,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.52.0 From nobody Sun Feb 8 01:31:23 2026 Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.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 1802736165A for ; Fri, 9 Jan 2026 15:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767973610; cv=none; b=o6VkBuCDOgxTuBaicde9ClWBxaKO0HI/qNUpuAxAS+x7eJIcnlTaI5koaaVVYmk+8oSy7VHibpDyJQe4T6FnHEZ5CBEO3kEx1W2QBOx1kCbK5P27gzXWaPBFZHgRIahkqLWQ0k5AO2mWb/WtbPXn+eJAQt5U3WyNNzfbmUoznEI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767973610; c=relaxed/simple; bh=SwFUmLCdNs5MU4lElLg10trJ7NiPWlGdX2S+W13os64=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uTdZWn8FjXk990yMl25Oq3pkpHLv74DzoETNIFizMCAtOyHqoaw74oR5IahAWGUdI6/QKT7xwIyh603FEVOFNt2Wuke6bLzn4eDzLnPQG9HXogAaHKs1lElfERJBiTy8tgbZlMV8nGldIrZimLJq3d2hLC2JQNTcz3buNGZMtp0= 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=LU8ts/QC; arc=none smtp.client-ip=209.85.215.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="LU8ts/QC" Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-bcfd82f55ebso1473619a12.1 for ; Fri, 09 Jan 2026 07:46:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767973608; x=1768578408; 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=CBICZ8YwEG0B49att9rs+qAvonW13wXo7ZtxBvLrLF0=; b=LU8ts/QCSvJgojfKsCbGqIwounFREYIeWgBQo3OOcIX2TFLIOWtqUe08qaKY3U/pMb eYCL7KmpRZAhvVdHMT+eyD5ZbR7YRrfBZ5G77FCrumT82bAqjvvbAHy/QlwGaG4ONNkO lMY53CC+qqVgTlDcpG7TWMusWsaBZeoqdV82F6z6H9QjnPhz+EBvpE2hrqNjyjiyspmr ZZfe5jJYh8EDwgNJJgXkxHXHGzGp3AahFqjaInK9FiWYxaRjsDL8wXfwghTCqGrvM7pV 7/wQSUEkbTruZZAFeWNx3YI6tkx5spVha41uHwid6Vphxea6lmFHul0SUaUi8K2nlWKM uWNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767973608; x=1768578408; 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=CBICZ8YwEG0B49att9rs+qAvonW13wXo7ZtxBvLrLF0=; b=uIncoShg9ju7tLmCh4oevVQanYAfOIa1IQ3IJqLraWkUDE5NlpRSVy23m2H4064dNe phBJcNi5+kixSPxUa3AzI99g+WQ3ZwXYOkZQgamyfIA2zbXDkvSWXn/u4lMm/lzRKeu4 ChKpc0jKYeUSY587+Nk0cwe9VUwXulqElRl+iYZLaXodV+Y7ZhDAg1ogMdzYsUaxWlCd /hME6zlU4CUjcU3ruuP2Tvirymad25RJZ5Im/CWXgWnFzydXzrZZA7ATc3phJLw/mx3d fQBJc2fzgxnQLaE0TW9jdjGVD7+UB0JVGW8Vtgp0Hu49lorQQp+UVxtJMO/mg6Zh9i1G MJBA== X-Gm-Message-State: AOJu0Yy7fdKMjQgslycBX6NsS+ZkkgehGQ7T0ByagWLPvZ+ToZa8ClAe jndVJN4lVsLxGbx6kMPyMS4MjEbLzlF9CLWxrAC/HgmERndF9woqDsvU X-Gm-Gg: AY/fxX7ap9yt9On4Sz4PSWq2wd98fWZr4r1odNCT9uea4hxFPvrj/Cp8unjGbSBKeHT K3dz7qkxJ6tTO6+7gblRLC0BWQlSyen8EOxgV+yXdD+83cFbYaMTa2v276KjXgw6DQoPJZ0rfr5 bmDNXOBLTrt90wY5Slj/yrRUBPSoW3jAGgbViJZbcrKT6aLhzWQcnjOMp4++MQXFDxOIYMhzSfP +rIn4CkdO6MAFe1ocChkNm+qS5GWUSqUja4igtfwkldz3p2+bQCVGe8GLS4lR3IYRoDuXVubi8v 5tjYN193zp0eRq4TxdTQteAAY/8SUy/D4wkn6OliEw1EbIhfSgNVipGKKTPgQWc9g4R+BXRUNFy dYQ6ALJr35G/sxor6pP+BPUJe8fYFIpetsJ/ZBIxffj4eEfOCXSsoYPUq6I+f5Hhjb+vqXG/LLc bFN5NkIfvMKD2JxKGjCM2NyM+tLQ3n5rgZepNf96rlXek= X-Google-Smtp-Source: AGHT+IHbGH/eZSPJCY+XWmlxxF4AOahN295jcnS4f6MVPfHQ03ioY+P5qRBqDsvA7iagUFK10+KKJQ== X-Received: by 2002:a17:903:90d:b0:2a0:acdb:ce0c with SMTP id d9443c01a7336-2a3edbaeef5mr114591645ad.29.1767973608260; Fri, 09 Jan 2026 07:46:48 -0800 (PST) Received: from fedoraemon.neon-universe.ts.net ([2406:7400:11d:8d1e:1613:9777:a803:43fd]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a3e3ba03f9sm108166395ad.0.2026.01.09.07.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jan 2026 07:46:47 -0800 (PST) From: Avinal Kumar To: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, neil.armstrong@linaro.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch Subject: [PATCH 2/2] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions Date: Fri, 9 Jan 2026 21:11:57 +0530 Message-ID: <20260109154157.33592-3-avinal.xlvii@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109154157.33592-1-avinal.xlvii@gmail.com> References: <20260109154157.33592-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. Signed-off-by: Avinal Kumar --- .../gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c b/drivers= /gpu/drm/panel/panel-panasonic-vvx10f034n00.c index 3c3308fc55df..73c5827a15a4 100644 --- a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +++ b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c @@ -44,14 +44,24 @@ 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); =20 - return mipi_dsi_shutdown_peripheral(wuxga_nt->dsi); + struct mipi_dsi_multi_context dsi_ctx =3D { + .dsi =3D 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) --=20 2.52.0