[PATCH] pmdomain: core: connect consumer with supplier via device link
Icenowy Zheng
uwu at icenowy.me
Sun Nov 15 23:46:59 PST 2026
在 2026-11-16一的 07:24 +0000,Yixun Lan写道:
> Hi Ulf,
>
> On 12:33 Sat 14 Nov , Ulf Hansson wrote:
> > On Thu, Nov 12, 2026 at 8:45 AM Yixun Lan <dlan at kernel.org> wrote:
> > >
> > > Connect downstream Power Domain consumer with the supplier
> > > through
> > > the device link API, So when the pmdomain driver is unloaded or
> > > unbinded,
> > > the consumer can be automatically notified and purged gracefully.
> > >
> > > Signed-off-by: Yixun Lan <dlan at kernel.org>
> >
> > Can you check if the below commit that sits on my fixes branch
> > solves
> > this problem for you?
> >
> No, I've cherry-picked below commit and it does not solve my issue,
> it's a different problem.
>
> Problem here is the pm consumer side isn't aware pm driver is
> removed.
>
I do think it's just better to prevent PM drivers from being removed.
Thanks,
Icenowy
>
> > e279833a5362 pmdomain: core: Wait for device link removals before
> > dropping genpd->dev
> >
> > Kind regards
> > Uffe
> >
More information about the linux-riscv
mailing list