Re: [PATCH printk v3 25/40] efi: earlycon: use console_is_registered()

From: Petr Mladek
Date: Thu Nov 10 2022 - 09:29:10 EST


On Mon 2022-11-07 15:22:23, John Ogness wrote:
> The CON_ENABLED status of a console is a runtime setting that does not
> involve the console driver. Drivers must not assume that if the console
> is disabled then proper hardware management is not needed. For the EFI
> earlycon case, it is about remapping/unmapping memory for the
> framebuffer.
>
> Use console_is_registered() instead of checking CON_ENABLED.
>
> Signed-off-by: John Ogness <john.ogness@xxxxxxxxxxxxx>

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr