From: neil.armstrong@linaro.org
To: Hsieh Hung-En <hungen3108@gmail.com>,
dianders@chromium.org, jesszhan0024@gmail.com
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch
Subject: Re: [PATCH v2] drm/panel: ronbo-rb070d30: Ignore DCS errors in disable()
Date: Fri, 2 Oct 2026 10:12:29 +0200 [thread overview]
Message-ID: <cd764af7-3fa9-4b35-9c0d-9a0b863e464e@linaro.org> (raw)
In-Reply-To: <20261001004940.110776-1-hungen3108@gmail.com>
On 10/1/26 02:49, Hsieh Hung-En wrote:
> If rb070d30_panel_disable() returns an error, drm_panel_disable() skips
> clearing panel->enabled. unprepare() still powers the panel off, but the
> next drm_panel_enable() sees the panel as already enabled and does
> nothing, so the panel stays dark.
>
> Always return 0 from disable(). A failed ENTER_SLEEP_MODE is still logged
> by mipi_dsi_dcs_enter_sleep_mode_multi().
>
> Suggested-by: Douglas Anderson <dianders@chromium.org>
> Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
> ---
>
> Notes:
> Changes in v2:
> - Add a comment explaining why the error is ignored (Doug)
>
> This applies on top of:
> https://lore.kernel.org/all/20260929080143.559685-1-hungen3108@gmail.com/
>
> v1:
> https://lore.kernel.org/all/20260930013029.3241267-1-hungen3108@gmail.com/
>
> Compile-tested on arm64 with W=1; not tested on hardware.
>
> drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
> index ebe6352db..9adf97aba 100644
> --- a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
> +++ b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
> @@ -87,7 +87,13 @@ static int rb070d30_panel_disable(struct drm_panel *panel)
> struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
>
> mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx);
> - return dsi_ctx.accum_err;
> +
> + /*
> + * Returning an error would leave panel->enabled set, causing the
> + * next enable to be skipped even after unprepare powers off the panel.
> + * The helper above already logs any command failure.
> + */
> + return 0;
> }
>
> /* Default timings */
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Thanks,
Neil
next prev parent reply other threads:[~2026-10-02 8:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 0:49 Hsieh Hung-En
2026-10-02 8:12 ` neil.armstrong [this message]
2026-10-02 9:16 ` Neil Armstrong
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=cd764af7-3fa9-4b35-9c0d-9a0b863e464e@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=airlied@gmail.com \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hungen3108@gmail.com \
--cc=jesszhan0024@gmail.com \
--cc=linux-kernel@vger.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®