Re: [PATCH v3 0/3] pmdomain: rockchip: fix the probe error and deferral paths
From: Ulf Hansson
Date: Mon Nov 23 2026 - 10:03:32 EST
On Fri, Nov 13, 2026 at 9:42 AM Arun Iyengar via B4 Relay
<devnull+aiyengar1990.gmail.com@xxxxxxxxxx> wrote:
>
> Fixes for a Rockchip power domain controller probe that fails or defers,
> for example on a domain clock that is not available yet. They apply on
> top of 1/2 of Yao Zi's series [1], which has to go in first; patch 2
> replaces 2/2 of [1]. On the pmdomain next branch, 1/2 of [1] conflicts
> with "cycle an optional power-domain reset on power-on" in one line.
This sounds messy.
I tried to apply patch1 on my fixes branch which failed. Please
re-base this and send a new version.
For changes that are targeted for fixes, please send them separately
from the other improvements.
Kind regards
Uffe
>
> Tested with v1 on an Orange Pi 5 (RK3588S), v7.3 based kernel, with a
> test device tree that makes the PD_FEC clock appear late: no freed
> domain left on gpd_list, no -517 errors, and the controller binds later
> with all 26 domains. The v2/v3 changes are build-tested only.
>
> [1] https://lore.kernel.org/r/20261105001257.1368266-1-me@xxxxxxxx
>
> Developed with Claude (Anthropic), which wrote the code and the commit
> messages. I reviewed every change.
>
> Signed-off-by: Arun Iyengar <aiyengar1990@xxxxxxxxx>
> ---
> Changes in v3:
> - Split 2/2 into the fix (2/3: deferral, pm_qos error code, callers'
> messages) and a clean-up of the other messages without Fixes tags
> (3/3) (Yao Zi)
> - Shorter commit messages and comments (Heiko Stuebner)
> - No code change from v2 apart from the comments in 1/3
> - Link to v2: https://patch.msgid.link/20261112-pmdomain-rockchip-v2-0-5cd942a23df7@xxxxxxxxx
>
> Changes in v2:
> - Dropped "pmdomain: rockchip: put only the clocks that were got on
> error" for 1/2 of [1], which fixes the same bug
> - 2/2: drop the callers' messages and use dev_err_probe() where the
> errors happen (Sebastian Reichel)
> - 2/2: a pm_qos syscon error keeps its own code
> - Link to v1: https://patch.msgid.link/20261110-pmdomain-rockchip-v1-0-6b9fa6ebaa86@xxxxxxxxx
>
> ---
> Arun Iyengar (3):
> pmdomain: rockchip: remove subdomain links before the domains on error
> pmdomain: rockchip: don't report probe deferral as an error
> pmdomain: rockchip: use dev_err_probe() for the other probe errors
>
> drivers/pmdomain/rockchip/pm-domains.c | 131 +++++++++++++++++++--------------
> 1 file changed, 76 insertions(+), 55 deletions(-)
> ---
> base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
> change-id: 20261110-pmdomain-rockchip-3497a2e7fdf5
> prerequisite-patch-id: c2f0c5eb6651baa744f66342db63485a6685fb71
>
> Best regards,
> --
> Arun Iyengar <aiyengar1990@xxxxxxxxx>
>
>