Re: [PATCH] virt-pci: add platform bus support

From: Richard Weinberger
Date: Mon Feb 13 2023 - 13:10:30 EST


----- Ursprüngliche Mail -----
> Von: "Johannes Berg" <johannes@xxxxxxxxxxxxxxxx>
> An: "Vincent Whitchurch" <vincent.whitchurch@xxxxxxxx>, "richard" <richard@xxxxxx>, "anton ivanov"
> <anton.ivanov@xxxxxxxxxxxxxxxxxx>
> CC: robh@xxxxxxxxxx, devicetree@xxxxxxxxxxxxxxxxxxx, "linux-um" <linux-um@xxxxxxxxxxxxxxxxxxx>, "linux-kernel"
> <linux-kernel@xxxxxxxxxxxxxxx>, "kernel" <kernel@xxxxxxxx>
> Gesendet: Montag, 13. Februar 2023 18:54:49
> Betreff: Re: [PATCH] virt-pci: add platform bus support

> On Fri, 2023-01-27 at 15:30 +0100, Vincent Whitchurch wrote:
>> This driver registers PCI busses, but the underlying virtio protocol
>> could just as easily be used to provide a platform bus instead. If the
>> virtio device node in the devicetree indicates that it's compatible with
>> simple-bus, register platform devices instead of handling it as a PCI
>> bus.
>>
>> Only one platform bus is allowed and the logic MMIO region for the
>> platform bus is placed at an arbitrarily-chosen address away from the
>> PCI region.
>
> So ... hm. I'm not sure I _like_ this so much. It feels decidedly
> strange to put it this way.
>
> But it looks like Richard already applied it, so I suppose look at this
> as kind of a retroactive information gathering. :)

I liked the idea, the patch made sense, so yes.
But this does not mean that things can't be changed.
Until we release 6.3 we have time.

Thanks,
//richard