Re: [PATCH 4/5] PCI/pwrctl: Move pwrctl device creation to its own helper function
From: Bartosz Golaszewski
Date: Fri Oct 25 2024 - 04:07:00 EST
On Fri, Oct 25, 2024 at 10:05 AM Manivannan Sadhasivam
<manivannan.sadhasivam@xxxxxxxxxx> wrote:
>
> >
> > Would it be possible to move this into drivers/pwrctl/ and provide a
> > header stub for when PCI_PWRCTL is disabled in Kconfig?
> >
>
> Unfortunately, no. Because the pwrctl drivers are modular and PCI core is
> built-in. So if we use the pwrctl APIs in PCI core, then it will require pwrctl
> to always be built-in, which we do not want.
>
Got it.
Bartosz