[PATCH v2 3/7] PCI: sg2042: Add Sophgo SG2042 PCIe driver

Chen Wang unicorn_wang at outlook.com
Thu Sep 11 17:52:30 PDT 2025


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



More information about the linux-riscv mailing list