From: "Ondřej Jirman" <megi@xff.cz>
To: Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>
Cc: Ondrej Jirman <megi@xff.cz>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH v3 3/4] mfd: rk8xx: Add support for standard system-power-controller property
Date: Tue, 10 Oct 2023 19:41:18 +0200 [thread overview]
Message-ID: <20231010174138.1888396-4-megi@xff.cz> (raw)
In-Reply-To: <20231010174138.1888396-1-megi@xff.cz>
From: Ondrej Jirman <megi@xff.cz>
DT property rockchip,system-power-controller is now deprecated.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/mfd/rk8xx-core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c
index 11a831e92da8..a50a181b18e9 100644
--- a/drivers/mfd/rk8xx-core.c
+++ b/drivers/mfd/rk8xx-core.c
@@ -685,7 +685,8 @@ int rk8xx_probe(struct device *dev, int variant, unsigned int irq, struct regmap
if (ret)
return dev_err_probe(dev, ret, "failed to add MFD devices\n");
- if (device_property_read_bool(dev, "rockchip,system-power-controller")) {
+ if (device_property_read_bool(dev, "rockchip,system-power-controller") ||
+ device_property_read_bool(dev, "system-power-controller")) {
ret = devm_register_sys_off_handler(dev,
SYS_OFF_MODE_POWER_OFF_PREPARE, SYS_OFF_PRIO_HIGH,
&rk808_power_off, rk808);
--
2.42.0
next prev parent reply other threads:[~2023-10-10 17:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 17:41 [PATCH v3 0/4] Add support for poweroff via RK806 PMIC Ondřej Jirman
2023-10-10 17:41 ` [PATCH v3 1/4] dt-bindings: mfd: rk8xx: Deprecate rockchip,system-power-controller Ondřej Jirman
2023-10-12 20:00 ` Rob Herring
2023-10-19 10:29 ` Lee Jones
2023-10-19 10:30 ` Krzysztof Kozlowski
2023-10-19 13:50 ` Lee Jones
2023-10-19 14:03 ` Ondřej Jirman
2023-10-19 15:00 ` Lee Jones
2023-10-10 17:41 ` [PATCH v3 2/4] dt-bindings: mfd: rk806: Allow system-power-controller property Ondřej Jirman
2023-10-12 20:00 ` Rob Herring
2023-10-10 17:41 ` Ondřej Jirman [this message]
2023-10-10 17:41 ` [PATCH v3 4/4] mfd: rk8xx: Add support for RK806 power off Ondřej Jirman
2023-10-11 16:38 ` [PATCH v3 0/4] Add support for poweroff via RK806 PMIC Sebastian Reichel
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=20231010174138.1888396-4-megi@xff.cz \
--to=megi@xff.cz \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh+dt@kernel.org \
--cc=sebastian.reichel@collabora.com \
/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;
as well as URLs for NNTP newsgroup(s).