[PATCH 11/19] pmdomain: add stub definition for pm_runtime_put_genpd
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Jan 19 08:26:02 PST 2024
Putting a runtime PM reference will send a device into runtime suspend
once no users remain.
We don't do reference counting for users and don't mind power domains
remaining enabled as the kernel will enable unused power domains on its
own anyway. Thus implement pm_runtime_put_genpd() as empty stub.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/pm_domain.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/pm_domain.h b/include/pm_domain.h
index 118770023150..1fa7f0bdbd3e 100644
--- a/include/pm_domain.h
+++ b/include/pm_domain.h
@@ -180,4 +180,11 @@ static inline void dev_pm_domain_detach(struct device *dev, bool power_off)
* start doing reference counting
*/
}
+
+static inline void pm_runtime_put_genpd(struct device *dev)
+{
+ /* Just keep power domain enabled until pm_runtime_resume_and_get_genpd
+ * starts doing reference counting
+ */
+}
#endif
--
2.39.2
More information about the barebox
mailing list