From: Xianwei Zhao <xianwei.zhao@amlogic.com>
To: <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-amlogic@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <linux-pm@vger.kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
xianwei.zhao <xianwei.zhao@amlogic.com>
Subject: [PATCH V3 RESEND 3/6] genpd: amlogic: init power domain state
Date: Mon, 11 Sep 2023 10:52:20 +0800 [thread overview]
Message-ID: <20230911025223.3433776-4-xianwei.zhao@amlogic.com> (raw)
In-Reply-To: <20230911025223.3433776-1-xianwei.zhao@amlogic.com>
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-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2023-09-11 2:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 2:52 [PATCH V3 RESEND 0/6] Power: T7: add power domain driver Xianwei Zhao
2023-09-11 2:52 ` [PATCH V3 RESEND 1/6] genpd: amlogic: modify some power domains property Xianwei Zhao
2023-09-11 2:52 ` [PATCH V3 RESEND 2/6] genpd: amlogic: add driver to support power parent node Xianwei Zhao
2023-09-11 2:52 ` Xianwei Zhao [this message]
2023-09-11 2:52 ` [PATCH V3 RESEND 4/6] dt-bindings: power: add Amlogic T7 power domains Xianwei Zhao
2023-09-11 2:52 ` [PATCH V3 RESEND 5/6] genpd: amlogic: Add support for T7 power domains controller Xianwei Zhao
2023-09-11 2:52 ` [PATCH V3 RESEND 6/6] arm64: dts: amlogic: t7: add power domain controller node Xianwei Zhao
2023-09-11 14:30 ` [PATCH V3 RESEND 0/6] Power: T7: add power domain driver Ulf Hansson
2023-09-11 15:04 ` Neil Armstrong
2023-09-11 15:09 ` (subset) " Neil Armstrong
2023-09-27 6:05 ` Lucas Tanure
2023-09-27 8:11 ` Neil Armstrong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230911025223.3433776-4-xianwei.zhao@amlogic.com \
--to=xianwei.zhao@amlogic.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=khilman@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh+dt@kernel.org \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox