linux-rockchip.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] media: rkvdec: Remove redundant
@ 2025-08-11 14:03 Nicolas Dufresne
  2025-08-11 14:30 ` Markus Elfring
  2025-08-11 14:37 ` Heiko Stübner
  0 siblings, 2 replies; 4+ messages in thread
From: Nicolas Dufresne @ 2025-08-11 14:03 UTC (permalink / raw)
  To: Detlev Casanova, Mauro Carvalho Chehab, Heiko Stuebner
  Cc: linux-media, linux-rockchip, linux-arm-kernel, linux-kernel,
	Sakari Ailus, Nicolas Dufresne

From: Sakari Ailus <sakari.ailus@linux.intel.com>

pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
pm_runtime_mark_last_busy().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
---
Changes since V1:
  - Re-applied since the driver have been moved out of staging
---
 drivers/media/platform/rockchip/rkvdec/rkvdec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/media/platform/rockchip/rkvdec/rkvdec.c b/drivers/media/platform/rockchip/rkvdec/rkvdec.c
index d707088ec0dc1f6a18b2d168ebdf20b443f2240e..445f7c92eee34f7d6f885bb519d9eb24313da548 100644
--- a/drivers/media/platform/rockchip/rkvdec/rkvdec.c
+++ b/drivers/media/platform/rockchip/rkvdec/rkvdec.c
@@ -765,7 +765,6 @@ static void rkvdec_job_finish(struct rkvdec_ctx *ctx,
 {
 	struct rkvdec_dev *rkvdec = ctx->dev;
 
-	pm_runtime_mark_last_busy(rkvdec->dev);
 	pm_runtime_put_autosuspend(rkvdec->dev);
 	rkvdec_job_finish_no_pm(ctx, result);
 }

---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250811-rkvdec-redundant-pm-rebase-ed9b885eeadd

Best regards,
-- 
Nicolas Dufresne <nicolas.dufresne@collabora.com>


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] media: rkvdec: Remove redundant
  2025-08-11 14:03 [PATCH v2] media: rkvdec: Remove redundant Nicolas Dufresne
@ 2025-08-11 14:30 ` Markus Elfring
  2025-08-11 14:37 ` Heiko Stübner
  1 sibling, 0 replies; 4+ messages in thread
From: Markus Elfring @ 2025-08-11 14:30 UTC (permalink / raw)
  To: Nicolas Dufresne, Sakari Ailus, linux-media, linux-rockchip,
	linux-arm-kernel, Detlev Casanova, Heiko Stübner,
	Mauro Carvalho Chehab
  Cc: LKML

>                               … Remove the now-reduntant explicit call to

                                                 redundant?


> pm_runtime_mark_last_busy().

Is the summary phrase incomplete?

Regards,
Markus

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] media: rkvdec: Remove redundant
  2025-08-11 14:03 [PATCH v2] media: rkvdec: Remove redundant Nicolas Dufresne
  2025-08-11 14:30 ` Markus Elfring
@ 2025-08-11 14:37 ` Heiko Stübner
  2025-08-11 14:48   ` Nicolas Dufresne
  1 sibling, 1 reply; 4+ messages in thread
From: Heiko Stübner @ 2025-08-11 14:37 UTC (permalink / raw)
  To: Detlev Casanova, Mauro Carvalho Chehab, Nicolas Dufresne
  Cc: linux-media, linux-rockchip, linux-arm-kernel, linux-kernel,
	Sakari Ailus, Nicolas Dufresne

Am Montag, 11. August 2025, 16:03:45 Mitteleuropäische Sommerzeit schrieb Nicolas Dufresne:
> From: Sakari Ailus <sakari.ailus@linux.intel.com>
> 
> pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
> pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
> to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
> pm_runtime_mark_last_busy().
> 
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>

verifíed the (new) definition of  pm_runtime_put_autosuspend()
Reviewed-by: Heiko Stuebner <heiko@sntech.de>

But the subject could use some work, I only got
	"[PATCH v2] media: rkvdec: Remove redundant"

so maybe make that
"media: rkvdec: Remove redundant pm_runtime_mark_last_busy"


Heiko

> ---
> Changes since V1:
>   - Re-applied since the driver have been moved out of staging
> ---
>  drivers/media/platform/rockchip/rkvdec/rkvdec.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/media/platform/rockchip/rkvdec/rkvdec.c b/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> index d707088ec0dc1f6a18b2d168ebdf20b443f2240e..445f7c92eee34f7d6f885bb519d9eb24313da548 100644
> --- a/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> +++ b/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> @@ -765,7 +765,6 @@ static void rkvdec_job_finish(struct rkvdec_ctx *ctx,
>  {
>  	struct rkvdec_dev *rkvdec = ctx->dev;
>  
> -	pm_runtime_mark_last_busy(rkvdec->dev);
>  	pm_runtime_put_autosuspend(rkvdec->dev);
>  	rkvdec_job_finish_no_pm(ctx, result);
>  }
> 
> ---
> base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
> change-id: 20250811-rkvdec-redundant-pm-rebase-ed9b885eeadd
> 
> Best regards,
> 





_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] media: rkvdec: Remove redundant
  2025-08-11 14:37 ` Heiko Stübner
@ 2025-08-11 14:48   ` Nicolas Dufresne
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Dufresne @ 2025-08-11 14:48 UTC (permalink / raw)
  To: Heiko Stübner, Detlev Casanova, Mauro Carvalho Chehab
  Cc: linux-media, linux-rockchip, linux-arm-kernel, linux-kernel,
	Sakari Ailus


[-- Attachment #1.1: Type: text/plain, Size: 2328 bytes --]

Le lundi 11 août 2025 à 16:37 +0200, Heiko Stübner a écrit :
> Am Montag, 11. August 2025, 16:03:45 Mitteleuropäische Sommerzeit schrieb
> Nicolas Dufresne:
> > From: Sakari Ailus <sakari.ailus@linux.intel.com>
> > 
> > pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
> > pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
> > to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
> > pm_runtime_mark_last_busy().
> > 
> > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> > Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
> > Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
> 
> verifíed the (new) definition of  pm_runtime_put_autosuspend()
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
> 
> But the subject could use some work, I only got
> 	"[PATCH v2] media: rkvdec: Remove redundant"

Thanks for catching this, good thing I posted the V2 here, I broke it while
porting.
> 
> so maybe make that
> "media: rkvdec: Remove redundant pm_runtime_mark_last_busy"

Will set it back to its original name:

	media: rkvdec: Remove redundant pm_runtime_mark_last_busy() calls

I'm missing a link to the original too.

Nicolas

> 
> 
> Heiko
> 
> > ---
> > Changes since V1:
> >   - Re-applied since the driver have been moved out of staging
> > ---
> >  drivers/media/platform/rockchip/rkvdec/rkvdec.c | 1 -
> >  1 file changed, 1 deletion(-)
> > 
> > diff --git a/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> > b/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> > index
> > d707088ec0dc1f6a18b2d168ebdf20b443f2240e..445f7c92eee34f7d6f885bb519d9eb2431
> > 3da548 100644
> > --- a/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> > +++ b/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> > @@ -765,7 +765,6 @@ static void rkvdec_job_finish(struct rkvdec_ctx *ctx,
> >  {
> >  	struct rkvdec_dev *rkvdec = ctx->dev;
> >  
> > -	pm_runtime_mark_last_busy(rkvdec->dev);
> >  	pm_runtime_put_autosuspend(rkvdec->dev);
> >  	rkvdec_job_finish_no_pm(ctx, result);
> >  }
> > 
> > ---
> > base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
> > change-id: 20250811-rkvdec-redundant-pm-rebase-ed9b885eeadd
> > 
> > Best regards,
> > 
> 
> 
> 

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-11 17:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 14:03 [PATCH v2] media: rkvdec: Remove redundant Nicolas Dufresne
2025-08-11 14:30 ` Markus Elfring
2025-08-11 14:37 ` Heiko Stübner
2025-08-11 14:48   ` Nicolas Dufresne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).