From: sashiko-bot@kernel.org
To: "Patrick Delaunay" <patrick.delaunay@foss.st.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 6/7] arm64: dts: st: add D1 domain for STM32MP23 family
Date: Thu, 03 Dec 2026 19:29:05 +0000 [thread overview]
Message-ID: <sashiko-outbox-248508@kernel.org> (raw)
In-Reply-To: <20261203181556.v3.6.I69d937a929c3e745f9d11db74298f0e1d91f0c2b@changeid>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] pmdomain: st: leak of link->domain.np refcount in
stm32mp_pm_domain_probe()
- [Low] arm64: dts: st: commit message omits hpdma assignment to ret_pd
--
commit 39f9eab845e68b59820b35f05e3932b2b6ece627
Author: Patrick Delaunay <patrick.delaunay@foss.st.com>
> arm64: dts: st: add D1 domain for STM32MP23 family
>
> Assign peripherals that require the Cortex-A35 cluster clocks to D1,
> a child of the PSCI cluster domain. Keep the wakeup path separate from
> D1; the domain models peripheral functionality, not wakeup routing.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
[Severity: Low]
Should the commit message also mention that hpdma, hpdma2, and hpdma3 in
arch/arm64/boot/dts/st/stm32mp231.dtsi are assigned to ret_pd, and why
they belong to the retention domain rather than d1_pd?
> diff --git a/arch/arm64/boot/dts/st/stm32mp231.dtsi b/arch/arm64/boot/dts/st/stm32mp231.dtsi
> index deeda0a252ce8..d8295caa83012 100644
> --- a/arch/arm64/boot/dts/st/stm32mp231.dtsi
> +++ b/arch/arm64/boot/dts/st/stm32mp231.dtsi
> @@ -130,6 +130,12 @@ scmi_vdda18adc: regulator@7 {
> };
> };
>
> + d1_pd: power-controller {
> + compatible = "st,stm32mp-pm-domain";
> + #power-domain-cells = <0>;
> + power-domains = <&cluster_pd>;
> + };
> +
> psci {
> compatible = "arm,psci-1.0";
> method = "smc";
[Severity: Medium]
Does instantiating d1_pd expose a device_node reference count leak on
cluster_pd in stm32mp_pm_domain_probe()?
In drivers/pmdomain/st/stm32mp-pm-domain.c (commit "pmdomain: st: add
STM32MP power domain"), stm32mp_pm_domain_probe() calls
of_parse_phandle_with_args() into link->domain, taking a reference on
link->domain.np.
Neither of_genpd_add_subdomain() nor of_genpd_remove_subdomain() drops
that reference, and the driver never calls of_node_put(link->domain.np) on
probe error or deferral paths, nor in
stm32mp_pm_domain_genpd_remove_subdomain().
Registering a devm action to call of_node_put(link->domain.np) right after
of_parse_phandle_with_args() would cover both probe failures and teardown.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203171721.1525015-1-patrick.delaunay@foss.st.com?part=6
next prev parent reply other threads:[~2026-12-03 19:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 17:15 [PATCH v3 0/7] arm64: dts: st: add STM32MP2 power domains Patrick Delaunay
2026-12-03 17:15 ` [PATCH v3 1/7] dt-bindings: power: st: add STM32MP PM domain Patrick Delaunay
2026-12-03 18:19 ` sashiko-bot
2026-12-03 17:16 ` [PATCH v3 2/7] pmdomain: st: add STM32MP power domain Patrick Delaunay
2026-12-03 17:16 ` [PATCH v3 3/7] MAINTAINERS: add entry for ST STM32 power domain driver Patrick Delaunay
2026-12-03 17:16 ` [PATCH v3 4/7] arm64: dts: st: add D1 domain for STM32MP25 family Patrick Delaunay
2026-12-03 19:08 ` sashiko-bot
2026-12-03 17:16 ` [PATCH v3 5/7] arm64: dts: st: fix power-domain labels DT coding style in STM32MP25 Patrick Delaunay
2026-12-03 17:16 ` [PATCH v3 6/7] arm64: dts: st: add D1 domain for STM32MP23 family Patrick Delaunay
2026-12-03 19:29 ` sashiko-bot [this message]
2026-12-03 17:16 ` [PATCH v3 7/7] arm64: dts: st: add power domains for STM32MP21 family Patrick Delaunay
2026-12-03 19:54 ` 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=sashiko-outbox-248508@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=patrick.delaunay@foss.st.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.