Re: [PATCH] pmdomain: core: connect consumer with supplier via device link

From: Ulf Hansson

Date: Wed Nov 25 2026 - 05:35:00 EST


On Mon, Nov 16, 2026 at 8:47 AM Icenowy Zheng <uwu@xxxxxxxxxx> wrote:
>
> 在 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
>

I tend to agree.

Unless we have a real use case where we really need to unbind a power
domain provider driver. Is that the case?

Kind regards
Uffe