Re: [PATCH RFC] ACPI: container: Add power domain control methods

From: Rafael J. Wysocki
Date: Thu Nov 10 2022 - 08:05:20 EST


On Thu, Nov 10, 2022 at 1:13 PM zhangzekun (A) <zhangzekun11@xxxxxxxxxx> wrote:
>
> Kindly ping.

I'm not going to apply this patch if that's what you're asking about.

Please have a look at LPI which is the ACPI way of doing what you want.

If you need to extend the support for it in the kernel, please do so.

If you need to extend the definition of LPI in the ACPI specification,
there is also a way to do that.

What you are trying to do would require extending the container device
definition in the specification anyway.

> 在 2022/10/29 1:07, Rafael J. Wysocki 写道:
> > On Tue, Oct 25, 2022 at 8:17 AM Zhang Zekun <zhangzekun11@xxxxxxxxxx> wrote:
> >> Platform devices which supports power control are often required to be
> >> power off/on together with the devices in the same power domain. However,
> >> there isn't a generic driver that support the power control logic of
> >> these devices.
> > Not true.
> >
> > There is the ACPI power resources interface designed to represent
> > power domains that is well supported and used in the industry.
> >
> > If it doesn't work for you, explain why.
> >
>