Re: [PATCH v9 3/3] printk: fix double printing with earlycon

From: Aleksey Makarov
Date: Thu May 11 2017 - 17:17:33 EST




On 05/11/2017 02:32 PM, Sergey Senozhatsky wrote:
On (05/11/17 17:41), Sergey Senozhatsky wrote:
[..]
Alexey,
can we have preferred console at offset 0 (not at console_cmdline_cnt - 1)
and restore the previous register_console() iteration order?

btw, what if someone has configured the system as
console= non-braille non-braille braille non-braille?
"The last non-braille console is always the preferred one"
is not true in this case.

I don't quite follow what you think is problem here.
The invariant keeps here, the code makes it always true.
In this case the last console is non-braille and it is preferred.
What is the problem?

Thank you
Aleksey Makarov