Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752654AbbDEUCQ (ORCPT ); Sun, 5 Apr 2015 16:02:16 -0400 Received: from mail-ig0-f181.google.com ([209.85.213.181]:33354 "EHLO mail-ig0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752010AbbDEUCN (ORCPT ); Sun, 5 Apr 2015 16:02:13 -0400 MIME-Version: 1.0 In-Reply-To: <1428245532-1523-1-git-send-email-peter@hurleysoftware.com> References: <1428167961-26841-1-git-send-email-peter@hurleysoftware.com> <1428245532-1523-1-git-send-email-peter@hurleysoftware.com> Date: Sun, 5 Apr 2015 13:02:12 -0700 X-Google-Sender-Auth: -BjTMOs9RHuJ1NixoTiq6VlBBn4 Message-ID: Subject: Re: [PATCH v5] earlycon: 8250: Fix command line regression From: Yinghai Lu To: Peter Hurley , Greg Kroah-Hartman , Andrew Morton Cc: "linux-serial@vger.kernel.org" , Linux Kernel Mailing List , Jiri Slaby Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2345 Lines: 61 On Sun, Apr 5, 2015 at 7:52 AM, Peter Hurley wrote: > Restore undocumented behavior of kernel command line parameters of > the forms: > console=uart[8250],io|mmio|mmio32,[,options] > console=uart[8250],[,options] > where 'options' have not been specified; in this case, the hardware > is assumed to be initialized. > > Document the required behavior of the original implementation. > > Fixes: c7cef0a84912cab3c9df8 ("console: Add extensible console matching") > Reported-by: Yinghai Lu > Signed-off-by: Peter Hurley > --- > v5: Refactored serial8250_console_setup() & univ8250_console_setup() > to eliminate open-coding; net +1 LOC (excludes documentation) > > v4: Removed FIXME comment > > v3: Fixed automatic console to port line settings initialization; > open-coded serial8250_console_setup() so the baud can be probed; > added sha reference in commit log > > v2: Fixed regression which allowed "console=uart1337,..." to start a > console (but not an earlycon) > + fixed earlycon= documentation related required behavior fixed by > this patch > > Documentation/kernel-parameters.txt | 18 ++++++++++++--- > drivers/tty/serial/8250/8250_core.c | 45 ++++++++++++++++++++++++++++-------- > drivers/tty/serial/8250/8250_early.c | 19 --------------- > 3 files changed, 50 insertions(+), 32 deletions(-) > > diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt > index bfcb1a6..1facf0b 100644 > --- a/Documentation/kernel-parameters.txt > +++ b/Documentation/kernel-parameters.txt > @@ -713,10 +713,18 @@ bytes respectively. Such letter suffixes can also be entirely omitted. > > uart[8250],io,[,options] > uart[8250],mmio,[,options] > + uart[8250],mmio32,[,options] > + uart[8250],0x[,options] You just don't listen. I wasted too much time on this. Greg, Please just drop c7cef0a84912cab3c9df8 ("console: Add extensible console matching"). Thanks Yinghai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/