summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-01-19 17:26:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-01-22 11:12:02 +0100
commit46a46b6cc8a2dad1316745d9e4fe26e5e55512c1 (patch)
treec5e3d85a733773107886942a05c02271a0af9907
parent7d04ad5ea514b4c86a55375188b4d698b4e1ab3a (diff)
downloadbarebox-46a46b6cc8a2.tar.gz
barebox-46a46b6cc8a2.tar.xz
pmdomain: add stub definition for pm_runtime_put_genpd
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@pengutronix.de> Link: https://lore.barebox.org/20240119162610.1014870-12-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/pm_domain.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/pm_domain.h b/include/pm_domain.h
index 1187700231..1fa7f0bdbd 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