diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2026-06-16 18:39:59 +0200 |
|---|---|---|
| committer | Manivannan Sadhasivam <mani@kernel.org> | 2026-07-01 06:51:41 +0200 |
| commit | d4e0984f12ea958e0f2def90ddb1e193a896932b (patch) | |
| tree | fc20c42c0bd57b1ac6f219e8c2fedd88777970cd | |
| parent | 3567bcf0e985a5b50c88d7fb18934c3ae7440cc0 (diff) | |
| download | linux-next-d4e0984f12ea958e0f2def90ddb1e193a896932b.tar.gz linux-next-d4e0984f12ea958e0f2def90ddb1e193a896932b.zip | |
PCI: imx6: Fix building against PCI_HOST_COMMON
When CONFIG_PCI_HOST_COMMON is set to =m, the i.MX6 PCIe driver
fails to link. This can happen when only i.MX endpoint mode is
enabled but not host mode, which would indirectly enable the
host-common driver itself.
ld.lld: error: undefined symbol: pci_host_common_parse_ports
>>> referenced by pci-imx6.c
>>> drivers/pci/controller/dwc/pci-imx6.o:(imx_pcie_host_init) in archive vmlinux.a
ld.lld: error: undefined symbol: pci_host_common_delete_ports
>>> referenced by pci-imx6.c
>>> drivers/pci/controller/dwc/pci-imx6.o:(imx_pcie_host_init) in archive vmlinux.a
>>> referenced by pci-imx6.c
>>> drivers/pci/controller/dwc/pci-imx6.o:(imx_pcie_host_init) in archive vmlinux.a
Select the common module from the endpoint support directly.
Fixes: 250eea5c06f5 ("PCI: imx6: Parse 'reset-gpios' in Root Port nodes")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260616164049.3656435-1-arnd@kernel.org
| -rw-r--r-- | drivers/pci/controller/dwc/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig index aa0b784c85b4..7d49027c6736 100644 --- a/drivers/pci/controller/dwc/Kconfig +++ b/drivers/pci/controller/dwc/Kconfig @@ -126,6 +126,7 @@ config PCI_IMX6_EP depends on ARCH_MXC || COMPILE_TEST depends on PCI_ENDPOINT select PCIE_DW_EP + select PCI_HOST_COMMON select PCI_IMX6 help Enables support for the PCIe controller in the i.MX SoCs to |
