Re: [PATCH 6/8] printk: Do not set Braille console as preferred_console

From: Chris Down

Date: Thu Feb 19 2026 - 10:03:15 EST


Petr Mladek writes:
The Braille console reuses the framework for handling consoles preferred
via the command line. However, it is a special-purpose interface that
neither receives standard printk messages nor associates with
/dev/console.

Currently, the "preferred_dev_console" variable can point to a Braille
console entry in the "preferred_consoles[]" array. This occurs if an
entry was first created for a non-Braille console, but a later 'console='
parameter redefined it as a Braille console.

Since a Braille console will only ever be enabled as such, it should not
be tracked as the primary system console. Adjust the logic to ensure
"preferred_dev_console" continues to point to the previously designated
normal console instead.

Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>

Looks good to me, after fixing John's comment about resetting preferred_dev_console_prev, please feel free to add:

Acked-by: Chris Down <chris@xxxxxxxxxxxxxx>