mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
To: Joshua Crofts <crofts@kernel.org>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Dave Stevenson <dave.stevenson@raspberrypi.com>,
	David Heidelberg <david@ixit.cz>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	Sylvain Petinot <sylvain.petinot@foss.st.com>
Cc: <linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/4] media: i2c: vd56g3: remove redundant pm_runtime_dont_use_autosuspend() calls
Date: Tue, 10 Nov 2026 15:20:42 +0100	[thread overview]
Message-ID: <7f911e02-fbed-4423-bb57-1b442c38c512@foss.st.com> (raw)
In-Reply-To: <20261110-media-remove-dont-use-autosuspend-v1-4-cc07e71b30f9@kernel.org>

Le 10/11/2026 à 15:03, Joshua Crofts a écrit :
> Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"),
> driver core is now responsible for undoing any
> pm_runtime_use_autosuspend() calls on driver exit.
> 
> Remove the redundant function calls.
> 
> Signed-off-by: Joshua Crofts <crofts@kernel.org>

Reviewed-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>

> ---
>  drivers/media/i2c/vd56g3.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/media/i2c/vd56g3.c b/drivers/media/i2c/vd56g3.c
> index a42210d0ab8d54a9132a5077875138c2440152bb..e4ad01973a24201a20dd43c86ac6de9817889049 100644
> --- a/drivers/media/i2c/vd56g3.c
> +++ b/drivers/media/i2c/vd56g3.c
> @@ -1538,7 +1538,6 @@ static int vd56g3_probe(struct i2c_client *client)
>  err_power_off:
>  	pm_runtime_disable(dev);
>  	pm_runtime_put_noidle(dev);
> -	pm_runtime_dont_use_autosuspend(dev);
>  	vd56g3_power_off(dev);
>  
>  	return ret;
> @@ -1555,7 +1554,6 @@ static void vd56g3_remove(struct i2c_client *client)
>  	if (!pm_runtime_status_suspended(sensor->dev))
>  		vd56g3_power_off(sensor->dev);
>  	pm_runtime_set_suspended(sensor->dev);
> -	pm_runtime_dont_use_autosuspend(sensor->dev);
>  }
>  
>  static const struct of_device_id vd56g3_dt_ids[] = {
> 

-- 
Regards,
Benjamin


      reply	other threads:[~2026-11-10 14:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 14:03 [PATCH 0/4] media: " Joshua Crofts
2026-11-10 14:03 ` [PATCH 1/4] media: i2c: imx355: " Joshua Crofts
2026-11-10 14:31   ` Dave Stevenson
2026-11-10 14:03 ` [PATCH 2/4] media: i2c: tc358746: " Joshua Crofts
2026-11-10 14:03 ` [PATCH 3/4] media: i2c: vd55g1: " Joshua Crofts
2026-11-10 14:20   ` Benjamin Mugnier
2026-11-10 14:03 ` [PATCH 4/4] media: i2c: vd56g3: " Joshua Crofts
2026-11-10 14:20   ` Benjamin Mugnier [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=7f911e02-fbed-4423-bb57-1b442c38c512@foss.st.com \
    --to=benjamin.mugnier@foss.st.com \
    --cc=crofts@kernel.org \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=david@ixit.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=sylvain.petinot@foss.st.com \
    /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®