mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Neil Armstrong <neil.armstrong@linaro.org>
To: Svyatoslav Ryhel <clamor95@gmail.com>,
	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
Subject: Re: [PATCH v1 3/5] drm/panel: r61307/r69328: remove redundant checks
Date: Mon, 16 Feb 2026 17:14:36 +0100	[thread overview]
Message-ID: <6f8896e1-6bf9-4997-9bf3-d5fffbdd4701@linaro.org> (raw)
In-Reply-To: <20260215085140.20499-4-clamor95@gmail.com>

On 2/15/26 09:51, Svyatoslav Ryhel wrote:
> This is now done by the DRM framework itself.
> 
> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
> ---
>   drivers/gpu/drm/panel/panel-renesas-r61307.c | 10 ----------
>   drivers/gpu/drm/panel/panel-renesas-r69328.c | 10 ----------
>   2 files changed, 20 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-renesas-r61307.c b/drivers/gpu/drm/panel/panel-renesas-r61307.c
> index 45afa44af114..2cc3bd66d6d4 100644
> --- a/drivers/gpu/drm/panel/panel-renesas-r61307.c
> +++ b/drivers/gpu/drm/panel/panel-renesas-r61307.c
> @@ -35,8 +35,6 @@ struct renesas_r61307 {
>   
>   	struct gpio_desc *reset_gpio;
>   
> -	bool prepared;
> -
>   	bool dig_cont_adj;
>   	bool inversion;
>   	u32 gamma;
> @@ -92,9 +90,6 @@ static int renesas_r61307_prepare(struct drm_panel *panel)
>   	struct device *dev = &priv->dsi->dev;
>   	int ret;
>   
> -	if (priv->prepared)
> -		return 0;
> -
>   	ret = regulator_enable(priv->vcc_supply);
>   	if (ret) {
>   		dev_err(dev, "failed to enable vcc power supply\n");
> @@ -113,7 +108,6 @@ static int renesas_r61307_prepare(struct drm_panel *panel)
>   
>   	renesas_r61307_reset(priv);
>   
> -	priv->prepared = true;
>   	return 0;
>   }
>   
> @@ -175,9 +169,6 @@ static int renesas_r61307_unprepare(struct drm_panel *panel)
>   {
>   	struct renesas_r61307 *priv = to_renesas_r61307(panel);
>   
> -	if (!priv->prepared)
> -		return 0;
> -
>   	usleep_range(10000, 11000);
>   
>   	gpiod_set_value_cansleep(priv->reset_gpio, 1);
> @@ -187,7 +178,6 @@ static int renesas_r61307_unprepare(struct drm_panel *panel)
>   	usleep_range(2000, 3000);
>   	regulator_disable(priv->vcc_supply);
>   
> -	priv->prepared = false;
>   	return 0;
>   }
>   
> diff --git a/drivers/gpu/drm/panel/panel-renesas-r69328.c b/drivers/gpu/drm/panel/panel-renesas-r69328.c
> index b40bfd702fac..b5fe127634ae 100644
> --- a/drivers/gpu/drm/panel/panel-renesas-r69328.c
> +++ b/drivers/gpu/drm/panel/panel-renesas-r69328.c
> @@ -33,8 +33,6 @@ struct renesas_r69328 {
>   	struct regulator *vdd_supply;
>   	struct regulator *vddio_supply;
>   	struct gpio_desc *reset_gpio;
> -
> -	bool prepared;
>   };
>   
>   static inline struct renesas_r69328 *to_renesas_r69328(struct drm_panel *panel)
> @@ -56,9 +54,6 @@ static int renesas_r69328_prepare(struct drm_panel *panel)
>   	struct device *dev = &priv->dsi->dev;
>   	int ret;
>   
> -	if (priv->prepared)
> -		return 0;
> -
>   	ret = regulator_enable(priv->vdd_supply);
>   	if (ret) {
>   		dev_err(dev, "failed to enable vdd power supply\n");
> @@ -77,7 +72,6 @@ static int renesas_r69328_prepare(struct drm_panel *panel)
>   
>   	renesas_r69328_reset(priv);
>   
> -	priv->prepared = true;
>   	return 0;
>   }
>   
> @@ -142,9 +136,6 @@ static int renesas_r69328_unprepare(struct drm_panel *panel)
>   {
>   	struct renesas_r69328 *priv = to_renesas_r69328(panel);
>   
> -	if (!priv->prepared)
> -		return 0;
> -
>   	gpiod_set_value_cansleep(priv->reset_gpio, 1);
>   
>   	usleep_range(5000, 6000);
> @@ -152,7 +143,6 @@ static int renesas_r69328_unprepare(struct drm_panel *panel)
>   	regulator_disable(priv->vddio_supply);
>   	regulator_disable(priv->vdd_supply);
>   
> -	priv->prepared = false;
>   	return 0;
>   }
>   

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Thanks,
Neil

  reply	other threads:[~2026-02-16 16:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-15  8:51 [PATCH v1 0/5] drm/panel: r61307/r69328: minor updates Svyatoslav Ryhel
2026-02-15  8:51 ` [PATCH v1 1/5] drm/panel: r61307: align with schema property Svyatoslav Ryhel
2026-02-16 16:13   ` Neil Armstrong
2026-02-15  8:51 ` [PATCH v1 2/5] drm/panel: r61307/r69328: convert to drm_connector_helper_get_modes_fixed Svyatoslav Ryhel
2026-02-16 16:14   ` Neil Armstrong
2026-02-15  8:51 ` [PATCH v1 3/5] drm/panel: r61307/r69328: remove redundant checks Svyatoslav Ryhel
2026-02-16 16:14   ` Neil Armstrong [this message]
2026-02-15  8:51 ` [PATCH v1 4/5] drm/panel: r61307/r69328: return accumulated errors Svyatoslav Ryhel
2026-02-16 16:15   ` Neil Armstrong
2026-02-15  8:51 ` [PATCH v1 5/5] drm/panel: r61307/r69328: convert to devm_mipi_dsi_attach Svyatoslav Ryhel
2026-02-16 16:16   ` Neil Armstrong
2026-03-10 13:28 ` [PATCH v1 0/5] drm/panel: r61307/r69328: minor updates 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=6f8896e1-6bf9-4997-9bf3-d5fffbdd4701@linaro.org \
    --to=neil.armstrong@linaro.org \
    --cc=airlied@gmail.com \
    --cc=clamor95@gmail.com \
    --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=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®