Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752687AbbDDDJ1 (ORCPT ); Fri, 3 Apr 2015 23:09:27 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:35495 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752619AbbDDDJZ (ORCPT ); Fri, 3 Apr 2015 23:09:25 -0400 Message-ID: <551F55DC.1000706@hurleysoftware.com> Date: Fri, 03 Apr 2015 23:09:16 -0400 From: Peter Hurley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Yinghai Lu CC: Greg Kroah-Hartman , "linux-serial@vger.kernel.org" , Linux Kernel Mailing List , Jiri Slaby , Andrew Morton , Rob Herring Subject: Re: [PATCH v2] earlycon: 8250: Fix command line regression References: <1428102229-26103-1-git-send-email-peter@hurleysoftware.com> <1428105875-4038-1-git-send-email-peter@hurleysoftware.com> <551F4C6C.6040108@hurleysoftware.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3101 Lines: 94 On 04/03/2015 10:56 PM, Yinghai Lu wrote: > On Fri, Apr 3, 2015 at 7:29 PM, Peter Hurley wrote: >> On 04/03/2015 10:19 PM, Yinghai Lu wrote: >>> On Fri, Apr 3, 2015 at 5:04 PM, 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. >>> >>> >>> Please separated bug fix and other documentation change to different patches. >> >> No. The documentation reflects exactly what the bug fix is for. > > what is > > + uart[],mmio,[,options] > + uart[],mmio32,[,options] Wrong patch version; that's v1. >>> also fix the patch title to make it clear and you need to mention which commit >>> cause the regression. >> >> Please bisect and send bisect log so I know which commit broke >> your setup. > > I already gave your the patch "title". Here it is again: > > commit c7cef0a84912cab3c9df8949b034e4aa62982ec9 > Author: Peter Hurley > Date: Mon Mar 9 16:27:12 2015 -0400 > > console: Add extensible console matching Ok. >>> This patch fix regression for the hand over. Thanks. >>> >>> Another regression. >>> when user have >>> console=uart8250,io,0x3f8 console=uart8250,io,0x2f8 >>> >>> before your patchset: >>> port_0x3f8 is early console, and will be console later. >>> and port_0x2f8 is ignored, because only ONE early console is allowed. >>> and old console setup, only handle ttyS0. >>> >>> after your patchset: >>> port_0x3f8 is early console, and will be console later. >>> port_0x2f8 will become default console, as new console with match method >>> treat all uart8250 as ttyS0. >>> >>> Please fix that too. >> >> That's a new feature, not a regression. > > ok, think that more. > > with this patch: > > [PATCH] earlycon: 8250: Fix command line regression > > When you have console=uart8250,io,0x3f8 console=uart,io,0x2f8 > > you will skip the setup to 0x2f8, as the options is null. > then if the bios or bootloader only setup baud rate for 0x3f8. > the user could get nothing from 0x2f8. > > Do you need to call univ8250_console_setup(co, options) > to set the default baud rate ? No. The user specified that the console had already been initialized by leaving out the option string. Isn't that what this whole email thread has been about? All this automatic behavior and aliases for the same things just adds unnecessary complexity and maintenance burden, without measurable gain. The real tragedy is that all this was totally unnecessary; what was wrong with "earlycon=uart,io,0x3f8 console=ttyS0"? Regards, Peter Hurley -- 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/