Thread (12 messages) 12 messages, 4 authors, 2023-09-27

[PATCH V3 RESEND 3/6] genpd: amlogic: init power domain state

flat view
STALE1114d LANDED

From: Xianwei Zhao <xianwei.zhao@amlogic.com>
Date: 2023-09-11 02:53:31
Also in: linux-amlogic
Subsystem: the rest · Maintainer: Linus Torvalds

Revision v3 of 4 in this series; landed in mainline as 0a7bd33c9968 on 2023-09-13.

Revisions (4)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3
  4. v3 current
From: "xianwei.zhao" <xianwei.zhao@amlogic.com>

If initial power domain with 'AWAY_ON' property state is off,
turn on the power.

Signed-off-by: xianwei.zhao <xianwei.zhao@amlogic.com>
---
V2 -> V3: modify subject "genpd: amlogic: "
	  remove modification that transform is_off into 1 or 0 using !!
V1 -> V2: None
---
 drivers/genpd/amlogic/meson-secure-pwrc.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/drivers/genpd/amlogic/meson-secure-pwrc.c b/drivers/genpd/amlogic/meson-secure-pwrc.c
index ecada537b19c..d751c224048d 100644
--- a/drivers/genpd/amlogic/meson-secure-pwrc.c
+++ b/drivers/genpd/amlogic/meson-secure-pwrc.c
@@ -222,6 +222,9 @@ static int meson_secure_pwrc_probe(struct platform_device *pdev)
 		dom->base.power_on = meson_secure_pwrc_on;
 		dom->base.power_off = meson_secure_pwrc_off;
 
+		if (match->domains[i].is_off(dom) && (dom->base.flags & GENPD_FLAG_ALWAYS_ON))
+			meson_secure_pwrc_on(&dom->base);
+
 		pm_genpd_init(&dom->base, NULL, match->domains[i].is_off(dom));
 
 		pwrc->xlate.domains[i] = &dom->base;
-- 
2.37.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help