Re: [PATCH 2/3] PCI: of: create DT nodes for PCI devices if they do not exists

From: Clément Léger
Date: Wed May 04 2022 - 09:44:45 EST


Le Tue, 3 May 2022 17:53:53 -0500,
Bjorn Helgaas <helgaas@xxxxxxxxxx> a écrit :

> In subject:
>
> PCI: of: Create DT nodes ... if they do not exist
>
> The subject could be read as saying that you're going to create DT
> nodes before the PCI devices exist, but I think you mean that when we
> enumerate a PCI devices, we're *always* going to create a DT node for
> it, even if the DT didn't mention it.

Hi Bjorn,

Indeed ! I'll modify that.

>
> Maybe something like:
>
> PCI: of: Create DT node for every PCI device
>
> although I see Rob thinks this should be done on demand instead of
> doing it for every device, which sounds sensible to me.

Agreed, I'll rework this series.

Thanks,

>
> On Wed, Apr 27, 2022 at 11:45:01AM +0200, Clément Léger wrote:
> > In order to apply overlays to PCI device nodes, the nodes must first
> > exist. This commit add support to populate a skeleton tree for PCI bus
> > and devices. These nodes can then be used by drivers to apply overlays.
>
> s/This commit add support/Add support/
>
> Bjorn



--
Clément Léger,
Embedded Linux and Kernel engineer at Bootlin
https://bootlin.com