greybus: Omit a redundant pm_runtime_mark_last_busy() call in two functions()
Subsystems (2)
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
@@ -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
@@ -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
Quoted 5 lines · Markus Elfring
From: Markus Elfring <[email protected]>
Date: Sat, 14 Mar 2026 16:00:20 +0100The 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 apm_runtime_mark_last_busy()call before twopm_request_autosuspend()calls.The source code was transformed by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
Johan