From: Neil Armstrong <neil.armstrong@linaro.org>
To: "Guido Günther" <agx@sigxcpu.org>,
"Jessica Zhang" <jesszhan0024@gmail.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
phone-devel@vger.kernel.org, David Heidelberg <david@ixit.cz>
Subject: Re: [PATCH 2/2] drm/panel: visionox-rm69299: Move power_on/off into prepare/unprepare
Date: Thu, 7 May 2026 09:12:43 +0200 [thread overview]
Message-ID: <fb94f291-3831-417a-a924-e355cae27d89@linaro.org> (raw)
In-Reply-To: <20260427-visionox-rm69299-enable-v1-2-fa7d62d26d87@sigxcpu.org>
On 4/27/26 15:56, Guido Günther wrote:
> No need to have separate functions now that prepare/unprepare only
> handle powering on & off.
Following my comment on patch 1, just move the unprepare() one, keep the
power on in prepare().
Neil
>
> Signed-off-by: Guido Günther <agx@sigxcpu.org>
> ---
> drivers/gpu/drm/panel/panel-visionox-rm69299.c | 36 +++++++++-----------------
> 1 file changed, 12 insertions(+), 24 deletions(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-visionox-rm69299.c b/drivers/gpu/drm/panel/panel-visionox-rm69299.c
> index 3c92a6ceb8df..5c869d353368 100644
> --- a/drivers/gpu/drm/panel/panel-visionox-rm69299.c
> +++ b/drivers/gpu/drm/panel/panel-visionox-rm69299.c
> @@ -198,15 +198,25 @@ static int visionox_rm69299_disable(struct drm_panel *panel)
> return dsi_ctx.accum_err;
> }
>
> -static int visionox_rm69299_power_on(struct visionox_rm69299 *ctx)
> +static int visionox_rm69299_unprepare(struct drm_panel *panel)
> +{
> + struct visionox_rm69299 *ctx = panel_to_ctx(panel);
> +
> + gpiod_set_value(ctx->reset_gpio, 0);
> +
> + return regulator_bulk_disable(ARRAY_SIZE(visionox_rm69299_supplies),
> + ctx->supplies);
> +}
> +
> +static int visionox_rm69299_prepare(struct drm_panel *panel)
> {
> int ret;
> + struct visionox_rm69299 *ctx = panel_to_ctx(panel);
>
> ret = regulator_bulk_enable(ARRAY_SIZE(visionox_rm69299_supplies),
> ctx->supplies);
> if (ret < 0)
> return ret;
> -
> /*
> * Reset sequence of visionox panel requires the panel to be
> * out of reset for 10ms, followed by being held in reset
> @@ -222,28 +232,6 @@ static int visionox_rm69299_power_on(struct visionox_rm69299 *ctx)
> return 0;
> }
>
> -static int visionox_rm69299_power_off(struct visionox_rm69299 *ctx)
> -{
> - gpiod_set_value(ctx->reset_gpio, 0);
> -
> - return regulator_bulk_disable(ARRAY_SIZE(visionox_rm69299_supplies),
> - ctx->supplies);
> -}
> -
> -static int visionox_rm69299_unprepare(struct drm_panel *panel)
> -{
> - struct visionox_rm69299 *ctx = panel_to_ctx(panel);
> -
> - return visionox_rm69299_power_off(ctx);
> -}
> -
> -static int visionox_rm69299_prepare(struct drm_panel *panel)
> -{
> - struct visionox_rm69299 *ctx = panel_to_ctx(panel);
> -
> - return visionox_rm69299_power_on(ctx);
> -}
> -
> static const struct drm_display_mode visionox_rm69299_1080x2248_60hz = {
> .name = "1080x2248",
> .clock = 158695,
>
prev parent reply other threads:[~2026-05-07 7:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 13:56 [PATCH 0/2] drm/panel/visionox-rm69299: Split DSI commands out into enable/disable Guido Günther
2026-04-27 13:56 ` [PATCH 1/2] drm/panel: visionox-rm69299: " Guido Günther
2026-05-01 14:51 ` David Heidelberg
2026-05-07 7:11 ` Neil Armstrong
2026-05-07 9:09 ` Dmitry Baryshkov
2026-04-27 13:56 ` [PATCH 2/2] drm/panel: visionox-rm69299: Move power_on/off into prepare/unprepare Guido Günther
2026-05-01 14:50 ` David Heidelberg
2026-05-07 7:12 ` Neil Armstrong [this message]
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=fb94f291-3831-417a-a924-e355cae27d89@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=agx@sigxcpu.org \
--cc=airlied@gmail.com \
--cc=david@ixit.cz \
--cc=dri-devel@lists.freedesktop.org \
--cc=jesszhan0024@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=phone-devel@vger.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®