From: sashiko-bot@kernel.org
To: "Yaozhong Li" <yaozhonguwl@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org,
mfd@lists.linux.dev, lee@kernel.org, robh@kernel.org
Subject: Re: [RFC PATCH 2/3] mfd: rk8xx: release the power hold GPIOs before powering off
Date: Wed, 09 Sep 2026 09:35:41 +0000 [thread overview]
Message-ID: <20260909093542.5956F1F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260909092728.1859-3-yaozhonguwl@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Acquiring 'power-hold' GPIOs after registering MFD child devices can cause probe deferral thrashing.
- [Low] The commit message description violates the MFD subsystem formatting rules by using a lowercase letter.
--
commit 99f9b4ec1bb40a89a22b218c05cb3242225a6bc9
Author: Yaozhong Li <yaozhonguwl@gmail.com>
mfd: rk8xx: release the power hold GPIOs before powering off
This commit adds support for "power hold" GPIO lines to the rk8xx driver. It
acquires these lines during probe and releases them with a delay before the
PMIC shutdown request is written.
> mfd: rk8xx: release the power hold GPIOs before powering off
[Severity: Low]
This isn't a functional bug, but the commit message subject violates the MFD
subsystem formatting rules. The MFD guidelines require capitalizing the
description after the subsystem prefix. Should "release" be updated to
"Release"?
> diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c
> index 3dcf6abfda74f..fd1efbb94008d 100644
> --- a/drivers/mfd/rk8xx-core.c
> +++ b/drivers/mfd/rk8xx-core.c
[ ... ]
> @@ -874,6 +894,15 @@ int rk8xx_probe(struct device *dev, int variant, unsigned int irq, struct regmap
>
> if (device_property_read_bool(dev, "system-power-controller") ||
> device_property_read_bool(dev, "rockchip,system-power-controller")) {
> + rk808->power_hold_gpios = devm_gpiod_get_array_optional(dev,
> + "power-hold", GPIOD_OUT_HIGH);
> + if (IS_ERR(rk808->power_hold_gpios))
> + return dev_err_probe(dev, PTR_ERR(rk808->power_hold_gpios),
> + "failed to get power hold GPIOs\n");
> +
[Severity: Medium]
If the GPIO provider is not yet ready, devm_gpiod_get_array_optional() will
return -EPROBE_DEFER. Because this acquisition occurs after
devm_mfd_add_devices() has already run earlier in rk8xx_probe(), won't the
resulting devres cleanup unregister all newly registered child devices (such
as regulators, RTC, and clocks) while we wait for the GPIOs?
Could the GPIO acquisition be moved earlier in the probe function, before the
child devices are registered, to avoid probe deferral thrashing?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260909092728.1859-1-yaozhonguwl@gmail.com?part=2
next prev parent reply other threads:[~2026-09-09 9:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 9:27 [RFC PATCH 0/3] Fix poweroff restarting the board on Firefly-RK3399 Yaozhong Li
2026-09-09 9:27 ` Yaozhong Li
2026-09-09 9:27 ` [RFC PATCH 1/3] dt-bindings: mfd: rk808: add board level power hold GPIOs Yaozhong Li
2026-09-09 9:27 ` Yaozhong Li
2026-09-09 9:32 ` sashiko-bot
2026-09-09 9:27 ` [RFC PATCH 2/3] mfd: rk8xx: release the power hold GPIOs before powering off Yaozhong Li
2026-09-09 9:27 ` Yaozhong Li
2026-09-09 9:35 ` sashiko-bot [this message]
2026-09-09 13:08 ` Lee Jones
2026-09-09 9:27 ` [RFC PATCH 3/3] arm64: dts: rockchip: fix power-off on Firefly-RK3399 Yaozhong Li
2026-09-09 9:27 ` Yaozhong Li
2026-09-09 9:35 ` sashiko-bot
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=20260909093542.5956F1F00A3D@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee@kernel.org \
--cc=mfd@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=yaozhonguwl@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.