Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753306AbdDKBy1 (ORCPT ); Mon, 10 Apr 2017 21:54:27 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35942 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094AbdDKByZ (ORCPT ); Mon, 10 Apr 2017 21:54:25 -0400 Date: Tue, 11 Apr 2017 10:54:26 +0900 From: Sergey Senozhatsky To: Aleksey Makarov Cc: Petr Mladek , 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 Subject: Re: [PATCH v9 3/3] printk: fix double printing with earlycon Message-ID: <20170411015426.GB3836@jagdpanzerIV.localdomain> References: <20170315102854.1763-1-aleksey.makarov@linaro.org> <20170405202006.18234-1-aleksey.makarov@linaro.org> <20170410142214.GA3452@pathway.suse.cz> <0514db53-4f8b-fa08-f461-902de85777ee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0514db53-4f8b-fa08-f461-902de85777ee@linaro.org> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1264 Lines: 30 On (04/10/17 21:00), Aleksey Makarov wrote: > On 04/10/2017 05:22 PM, Petr Mladek wrote: > > On Wed 2017-04-05 23:20:00, Aleksey Makarov wrote: [..] > > > To fix that, introduce an invariant "The last non-braille console > > > is always the preferred one" on the entries of the console_cmdline > > > array. Then traverse it in reverse order to be sure that if > > > the console is preferred then it will be the first matching entry. > > > Introduce variable console_cmdline_cnt that keeps the number > > > of elements of the console_cmdline array (Petr Mladek). It helps > > > to get rid of the loop that searches for the end of this array. > > > > > > Reported-by: Sudeep Holla > > > Signed-off-by: Aleksey Makarov > > > > This version looks fine to me. Just a small nitpick below. > > Anyway: > > > > Reviewed-by: Petr Mladek > > Thank you for review. Can you (or anybody else) ACK it? > I am going to resend the whole series without those empty lines. > May I add your Acked-by:? Acked-by: Sergey Senozhatsky feel free to resend. I know some setups that have repeating (double) lines on the serial console, I'll ask people to test the patches. -ss