PCI: imx6: Fix building against PCI_PWRCTRL_GENERIC

When endpoint mode is built-in, but pwrctrl support is in a loadable
module, the imx driver fails to build because the unused host
support still tries to link against pwrctrl:

  ld.lld: error: undefined symbol: pci_pwrctrl_power_off_devices
  >>> referenced by pci-imx6.c:1988 (drivers/pci/controller/dwc/pci-imx6.c:1988)
  >>>               drivers/pci/controller/dwc/pci-imx6.o:(imx_pcie_shutdown) in archive vmlinux.a

Add one more select for this.

Fixes: 85c1fcfa74 ("PCI: imx6: Integrate new pwrctrl API")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://patch.msgid.link/20260618143629.2035247-1-arnd@kernel.org
This commit is contained in:
Arnd Bergmann 2026-06-18 16:36:08 +02:00 committed by Manivannan Sadhasivam
parent d4e0984f12
commit 7f4d9901eb

View File

@ -128,6 +128,7 @@ config PCI_IMX6_EP
select PCIE_DW_EP
select PCI_HOST_COMMON
select PCI_IMX6
select PCI_PWRCTRL_GENERIC
help
Enables support for the PCIe controller in the i.MX SoCs to
work in endpoint mode. The PCI controller on i.MX is based