Re: [PATCH] pmdomain: fix early domain registration
From: Johan Hovold
Date: Wed Jun 10 2026 - 05:24:30 EST
On Wed, Jun 10, 2026 at 11:12:19AM +0200, Geert Uytterhoeven wrote:
> On Tue, 9 Jun 2026 at 18:07, Johan Hovold <johan@xxxxxxxxxx> wrote:
> > A recent change switching to a dynamically allocated root device broke
> > platforms like rcar-sysc that registers PM domains before the PM domain
> > bus itself has been registered (cf. commit c5ae5a0c6112 ("pmdomain:
> > renesas: rcar-sysc: Add genpd OF provider at postcore_initcall")).
> >
> > Defer the assignment of the parent root device until the domain is
> > registered with driver core to avoid it being left unset.
>
> Thanks for your patch!
>
> > Fixes: a96e40f4afdc ("pmdomain: core: switch to dynamic root device")
> > Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> > Link: https://lore.kernel.org/r/CAMuHMdUHabMGJyJ7e7yp7DLC+JJc9k6NK9p4anj2wRKNuwZUng@xxxxxxxxxxxxxx
>
> s/Link/Closes/
I use use Link: on purpose (like Linus does).
> > Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
>
> This fixes the issue on R-Car H1, M2-W, H3 ES2.0, and on RZ/A1H.
> No regressions seen on SH-Mobile AG5, R-Mobile A1, and R-Car V4M.
>
> Tested-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
Thanks for confirming.
Johan