From: neil.armstrong@linaro.org
To: Avinal Kumar <avinal.xlvii@gmail.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Douglas Anderson <dianders@chromium.org>,
Dmitry Baryshkov <lumag@kernel.org>
Cc: maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch
Subject: Re: [PATCH v3 2/2] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions
Date: Mon, 13 Apr 2026 10:06:57 +0200 [thread overview]
Message-ID: <b7a8a27d-e61d-492b-a5e3-a0a21436045b@linaro.org> (raw)
In-Reply-To: <20260113091440.43735-3-avinal.xlvii@gmail.com>
On 1/13/26 10:14, Avinal Kumar wrote:
> Changes the panasonic-vvx10f034n00 panel to multi
> style functions for improved error handling.
>
> Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
> ---
> .../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)
>
> 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 = {
> + .dsi = wuxga_nt->dsi
> + };
> +
> + mipi_dsi_turn_on_peripheral_multi(&dsi_ctx);
> + return dsi_ctx.accum_err;
> }
>
> static int wuxga_nt_panel_disable(struct drm_panel *panel)
> {
> struct wuxga_nt_panel *wuxga_nt = to_wuxga_nt_panel(panel);
>
> - return mipi_dsi_shutdown_peripheral(wuxga_nt->dsi);
> + struct mipi_dsi_multi_context dsi_ctx = {
> + .dsi = wuxga_nt->dsi
> + };
> +
> + mipi_dsi_shutdown_peripheral_multi(&dsi_ctx);
> + return dsi_ctx.accum_err;
> }
>
> static int wuxga_nt_panel_unprepare(struct drm_panel *panel)
So yeah we want to use multi functions but in this case I don't think it's appropriate
when a since dsi function is called in a callback.
Dmitry ? Doug ?
Neil
next prev parent reply other threads:[~2026-04-13 8:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-13 9:14 [PATCH v3 0/2] " Avinal Kumar
2026-01-13 9:14 ` [PATCH v3 1/2] drm/mipi-dsi: add mipi_dsi_shutdown_peripheral_multi Avinal Kumar
2026-01-13 9:14 ` [PATCH v3 2/2] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions Avinal Kumar
2026-04-13 8:06 ` neil.armstrong [this message]
2026-04-13 16:07 ` Doug Anderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b7a8a27d-e61d-492b-a5e3-a0a21436045b@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=airlied@gmail.com \
--cc=avinal.xlvii@gmail.com \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®