mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] greybus: Omit a redundant pm_runtime_mark_last_busy() call in two functions()
@ 2026-03-14 15:05 Markus Elfring
  2026-03-17 14:04 ` Johan Hovold
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Elfring @ 2026-03-14 15:05 UTC (permalink / raw)
  To: greybus-dev, Alex Elder, Greg Kroah-Hartman, Johan Hovold
  Cc: LKML, kernel-janitors, Felix Gu, Laurent Pinchart,
	Rafael J. Wysocki, Sakari Ailus

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 14 Mar 2026 16:00:20 +0100

The device's last busy timestamp was set in a wrapper function since
the commit 18c1fe53d186867243f4cf17f4eef60737a16c4c ("PM: runtime:
Mark last busy stamp in pm_request_autosuspend()").
Thus delete a pm_runtime_mark_last_busy() call before
two pm_request_autosuspend() calls.

The source code was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/greybus/bundle.c    | 1 -
 drivers/greybus/interface.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/greybus/bundle.c b/drivers/greybus/bundle.c
index d1831d0986e9..d8d8e9ba7869 100644
--- a/drivers/greybus/bundle.c
+++ b/drivers/greybus/bundle.c
@@ -155,7 +155,6 @@ static int gb_bundle_resume(struct device *dev)
 
 static int gb_bundle_idle(struct device *dev)
 {
-	pm_runtime_mark_last_busy(dev);
 	pm_request_autosuspend(dev);
 
 	return 0;
diff --git a/drivers/greybus/interface.c b/drivers/greybus/interface.c
index 4ee4bda4a267..ed56f90369d1 100644
--- a/drivers/greybus/interface.c
+++ b/drivers/greybus/interface.c
@@ -753,7 +753,6 @@ static int gb_interface_resume(struct device *dev)
 
 static int gb_interface_runtime_idle(struct device *dev)
 {
-	pm_runtime_mark_last_busy(dev);
 	pm_request_autosuspend(dev);
 
 	return 0;
-- 
2.53.0


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

* Re: [PATCH] greybus: Omit a redundant pm_runtime_mark_last_busy() call in two functions()
  2026-03-14 15:05 [PATCH] greybus: Omit a redundant pm_runtime_mark_last_busy() call in two functions() Markus Elfring
@ 2026-03-17 14:04 ` Johan Hovold
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hovold @ 2026-03-17 14:04 UTC (permalink / raw)
  To: Markus Elfring
  Cc: greybus-dev, Alex Elder, Greg Kroah-Hartman, LKML,
	kernel-janitors, Felix Gu, Laurent Pinchart, Rafael J. Wysocki,
	Sakari Ailus

On Sat, Mar 14, 2026 at 04:05:23PM +0100, Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 14 Mar 2026 16:00:20 +0100
> 
> The device's last busy timestamp was set in a wrapper function since
> the commit 18c1fe53d186867243f4cf17f4eef60737a16c4c ("PM: runtime:

nit: 12 char hash is enough and reads better

> Mark last busy stamp in pm_request_autosuspend()").
> Thus delete a pm_runtime_mark_last_busy() call before
> two pm_request_autosuspend() calls.
> 
> The source code was transformed by using the Coccinelle software.
> 
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>

Reviewed-by: Johan Hovold <johan@kernel.org>

Johan

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

end of thread, other threads:[~2026-03-17 14:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-14 15:05 [PATCH] greybus: Omit a redundant pm_runtime_mark_last_busy() call in two functions() Markus Elfring
2026-03-17 14:04 ` Johan Hovold

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®