Re: [PATCH] pmdomain: core: connect consumer with supplier via device link
From: Icenowy Zheng
Date: Mon Nov 16 2026 - 02:47:35 EST
在 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@xxxxxxxxxx> 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@xxxxxxxxxx>
> >
> > 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
> >