[PATCH v2 3/7] PCI: sg2042: Add Sophgo SG2042 PCIe driver
Mingcong Bai
jeffbai at aosc.io
Thu Sep 11 09:17:30 PDT 2025
Hi Chen,
在 2025/9/10 10:08, Chen Wang 写道:
> +config PCIE_SG2042_HOST
> + tristate "Sophgo SG2042 PCIe controller (host mode)"
> + depends on OF && (ARCH_SOPHGO || COMPILE_TEST)
> + select PCIE_CADENCE_HOST
> + help
> + Say Y here if you want to support the Sophgo SG2042 PCIe platform
> + controller in host mode. Sophgo SG2042 PCIe controller uses Cadence
> + PCIe core.
> +
While build testing this patch against v6.16.6, PCIE_SG2042_HOST is set
to "M", the kernel would fail to build during MODPOST:
ERROR: modpost: "cdns_pcie_pm_ops"
[drivers/pci/controller/cadence/pcie-sg2042.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:147: Module.symvers] Error 1
make[1]: *** [[...]/linux-6.16.6/Makefile:1953: modpost] Error 2
make: *** [Makefile:248: __sub-make] Error 2
Best Regards,
Mingcong Bai
More information about the linux-riscv
mailing list