Re: [PATCH] pmdomain: core: switch to dynamic root device
From: Johan Hovold
Date: Tue Jun 09 2026 - 12:42:01 EST
Hi Geert,
On Tue, Jun 09, 2026 at 12:53:59PM +0200, Geert Uytterhoeven wrote:
> On Fri, 24 Apr 2026 at 12:41, Johan Hovold <johan@xxxxxxxxxx> wrote:
> > Driver core expects devices to be dynamically allocated and will, for
> > example, complain loudly if a device that lacks a release function is
> > ever freed.
> >
> > Use root_device_register() to allocate and register the root device
> > instead of open coding using a static device.
> >
> > Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
>
> Thanks for your patch, which is now commit a96e40f4afdcb52a
> ("pmdomain: core: switch to dynamic root device") in pmdomain/next.
> On e.g. R-Car H1, R-Car M2-W, and R-Car H3, this causes scary messages
> when systemd-journald.service is started:
>
> synth uevent: /always-on: failed to send uevent
> genpd_provider always-on: uevent: failed to send synthetic uevent: -22
> synth uevent: /ca15-cpu0: failed to send uevent
> genpd_provider ca15-cpu0: uevent: failed to send synthetic uevent: -22
> [...]
>
> Reverting the commit fixes the issue.
Thanks for the report and sorry about the breakage.
I mistakenly convinced myself that this would not be an issue due to the
pmdomain code making sure that the bus has been registered but missed
the two-step initialisation.
I just sent a fix here if you want to give it a spin:
https://lore.kernel.org/lkml/20260609160634.246526-1-johan@xxxxxxxxxx/
Johan