From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752506AbbDDC4k (ORCPT ); Fri, 3 Apr 2015 22:56:40 -0400 Received: from mail-ie0-f181.google.com ([209.85.223.181]:33797 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751635AbbDDC4g (ORCPT ); Fri, 3 Apr 2015 22:56:36 -0400 MIME-Version: 1.0 In-Reply-To: <551F4C6C.6040108@hurleysoftware.com> References: <1428102229-26103-1-git-send-email-peter@hurleysoftware.com> <1428105875-4038-1-git-send-email-peter@hurleysoftware.com> <551F4C6C.6040108@hurleysoftware.com> Date: Fri, 3 Apr 2015 19:56:35 -0700 X-Google-Sender-Auth: aLNYKIEYM_5Jv0elxlCay-G1Yq8 Message-ID: Subject: Re: [PATCH v2] earlycon: 8250: Fix command line regression From: Yinghai Lu To: Peter Hurley Cc: Greg Kroah-Hartman , "linux-serial@vger.kernel.org" , Linux Kernel Mailing List , Jiri Slaby , Andrew Morton , Rob Herring Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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] > >> 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 > >> 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 ?