On Mon, 17 Nov 2025 17:02:06 +0530, Siddharth Vadapalli wrote:
Commit under Fixes enabled loadable module support for the driver under the assumption that it shall be the sole user of the Cadence Host and Endpoint library APIs. This assumption guarantees that we won't end up in a case where the driver is built-in and the library support is built as a loadable module.
With the introduction of [1], this assumption is no longer valid. The SG2042 driver could be built as a loadable module, implying that the Cadence Host library is also selected as a loadable module. However, the pci-j721e.c driver could be built-in as indicated by CONFIG_PCI_J721E=y due to which the Cadence Endpoint library is built-in. Despite the library drivers being built as specified by their respective consumers, since the 'pci-j721e.c' driver has references to the Cadence Host library APIs as well, we run into a build error as reported at [0].
[...]
Applied, thanks!
[1/1] PCI: j721e: Add config guards for Cadence Host and Endpoint library APIs commit: 4b361b1e92be255ff923453fe8db74086cc7cf66
Best regards,