From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aleksey Makarov Subject: Re: [PATCH v9 3/3] printk: fix double printing with earlycon Date: Fri, 12 May 2017 00:17:18 +0300 Message-ID: References: <20170315102854.1763-1-aleksey.makarov@linaro.org> <20170405202006.18234-1-aleksey.makarov@linaro.org> <20170509082915.GA13236@bistromath.localdomain> <20170511082433.GA421@jagdpanzerIV.localdomain> <20170511084158.GB421@jagdpanzerIV.localdomain> <20170511113220.GA11507@jagdpanzerIV.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170511113220.GA11507@jagdpanzerIV.localdomain> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Sergey Senozhatsky Cc: Sabrina Dubroca , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Sudeep Holla , Greg Kroah-Hartman , Peter Hurley , Jiri Slaby , Robin Murphy , Steven Rostedt , "Nair, Jayachandran" , Sergey Senozhatsky , Petr Mladek List-Id: linux-serial@vger.kernel.org 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