Re: [PATCH] pmdomain: fix early domain registration
From: Geert Uytterhoeven
Date: Wed Jun 10 2026 - 05:13:13 EST
Hi Johan,
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/
> 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>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds