[PATCH 2/3 v2] PCI: s32g: Add initial PCIe support (RC)
Rob Herring
robh at kernel.org
Fri Sep 26 07:18:00 PDT 2025
On Thu, Sep 25, 2025 at 2:15 PM Bjorn Helgaas <helgaas at kernel.org> wrote:
>
> On Mon, Sep 22, 2025 at 09:52:21AM -0500, Rob Herring wrote:
> > On Fri, Sep 19, 2025 at 10:58 AM Vincent Guittot
> > > Add initial support of the PCIe controller for S32G Soc family. Only
> > > host mode is supported.
>
> > > +++ b/drivers/pci/controller/dwc/Kconfig
> > > @@ -255,6 +255,17 @@ config PCIE_TEGRA194_EP
> > > in order to enable device-specific features PCIE_TEGRA194_EP must be
> > > selected. This uses the DesignWare core.
> > >
> > > +config PCIE_S32G
> > > + bool "NXP S32G PCIe controller (host mode)"
> > > + depends on ARCH_S32 || (OF && COMPILE_TEST)
> >
> > Why the OF dependency? All the DT API should be available with !CONFIG_OF.
>
> We have lots of similar OF dependencies. Do we really want it to be
> possible to build a non-working driver in the !COMPILE_TEST case?
We do. IMO, they should all be removed. The only real purpose it
serves is hiding drivers on non-OF architectures. But the whole point
of COMPILE_TEST is to *not* hide things. (CONFIG_IOMEM dependencies
are similar and really only hide drivers on UML.)
>
> Maybe we should retain the OF dependency but only for !COMPILE_TEST,
> like this:
>
> config PCIE_S32G
> depends on (ARCH_S32 && OF) || COMPILE_TEST
That's completely redundant because ARCH_S32 is only enabled on ARM
which selects OF.
Rob
More information about the linux-arm-kernel
mailing list