Re: [RFC 3/9] PCI/portdrv: create platform devices for child OF nodes

From: Lukas Wunner
Date: Fri Jan 12 2024 - 04:51:06 EST


On Fri, Jan 12, 2024 at 10:43:04AM +0100, Bartosz Golaszewski wrote:
> Lukas, Terry: am I getting this right - is the port driver supposed to
> go away at some point?

Yes, that's the plan.

> Because I'm not sure I understand what the
> problem is here. To me it seems that when we create a real device for
> the PCIe port, then it's only normal to populate its child devices
> from the port driver.

portdrv is not creating a real device for the PCIe port.
It *binds* to that device. The device is created much earlier.

NAK for adding this to portdrv.

Thanks,

Lukas