Re: [PATCH v2 2/2] drivers: gpio: add virtio-gpio guest driver

From: Michal Suchánek
Date: Wed Dec 09 2020 - 05:35:36 EST


On Tue, Dec 08, 2020 at 01:33:02PM +0100, Enrico Weigelt, metux IT consult wrote:
> On 08.12.20 11:10, Michal Suchánek wrote:
>
> Hi,
>
> > The console driver provides early console which should initialize
> > without any transport. I have not tested it actually works but the code
> > seems to be there to support this use case.
>
> What does it do if it hasn't got any transport yet ?
>
> Just eat the bits or buffer everything, until it gets a transportport
> and sends out later ?

Why would it need the transport?

It's not like the data goes through an actual PCI bus, it is only used
for discovering and configuring the device, right?

Then if you do ad-hoc configuration of the device you do not need the
trasport at all.

Thanks

Michal