Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

From: Andy Shevchenko
Date: Sat Jul 30 2022 - 06:26:23 EST


On Sat, Jul 30, 2022 at 10:55 AM Markuss Broks <markuss.broks@xxxxxxxxx> wrote:
> On 7/29/22 00:19, Andy Shevchenko wrote:
> > On Thu, Jul 28, 2022 at 4:32 PM Markuss Broks <markuss.broks@xxxxxxxxx> wrote:

...

> I suppose we could use something like:
>
> if (region_intersects() == REGION_INTERSECTS)

Yes.

...

> >> + ret = sscanf(device->options, "%u,%u,%u", &info.x, &info.y, &info.depth);
> >> + if (ret != 3)
> >> + return -ENODEV;
> >
> > Don't we have some standard template of this, something like XxYxD,
> > where X, Y, and D are respective decimal numbers?
>
> I'm not aware of this.

I believe we won't introduce more chaos in already existing formats of
one or another thing, so I prefer to be stuck with in practice use
(e.g. "1024x768x16" without quotes for x=1024, y=768, depth=16).

--
With Best Regards,
Andy Shevchenko