Re: [PATCH v2 3/7] PCI: sg2042: Add Sophgo SG2042 PCIe driver
Chen Wang <[email protected]>
| Newsgroups | dev.linux.lists.sophgo,org.infradead.lists.linux-riscv,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <MAUPR01MB1107222DD9BBA9349C3907E21FE08A@MAUPR01MB11072.INDPRD01.PROD.OUTLOOK.COM> |
On 9/12/2025 12:17 AM, Mingcong Bai wrote: > 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 > My fault, seems there were some problems when I submitted the driver code. I will correct them immediately and submit a new version. Thanks, Chen > Best Regards, > Mingcong Bai