Skip to contentSkip to conversation

greybus: Omit a redundant pm_runtime_mark_last_busy() call in two functions()

PATCH In review Markus Elfring 2 participants 2 messages Mar 14 – Mar 17

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 greybus: Omit a redundant pm_runtime_mark_last_busy() call in two functions()

From: Markus Elfring <[email protected]>
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.

---
 drivers/greybus/bundle.c    | 1 -
 drivers/greybus/interface.c | 1 -
 2 files changed, 2 deletions(-)
drivers/greybus/bundle.c +0 -1
index d1831d0986e9..d8d8e9ba7869 100644
@@ -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;
drivers/greybus/interface.c +0 -1
index 4ee4bda4a267..ed56f90369d1 100644
@@ -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;
Signature · 1 line
2.53.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Markus Elfring

From: Markus Elfring <[email protected]>
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

Quoted 7 lines

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.

Johan