Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754802AbbBBSqn (ORCPT ); Mon, 2 Feb 2015 13:46:43 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:60198 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752923AbbBBSqk (ORCPT ); Mon, 2 Feb 2015 13:46:40 -0500 Date: Mon, 2 Feb 2015 10:46:39 -0800 From: Greg Kroah-Hartman To: Peter Hurley Cc: Eddie Huang , Rob Herring , Mark Rutland , Matthias Brugger , devicetree@vger.kernel.org, Vladimir Murzin , srv_heupstream@mediatek.com, Pawel Moll , Ian Campbell , Catalin Marinas , Jonathan Corbet , Will Deacon , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, yh.chen@mediatek.com, Howard Chen , Ashwin Chaugule , linux-serial@vger.kernel.org, Kumar Gala , "Joe.C" , Jiri Slaby , linux-arm-kernel@lists.infradead.org, Alan Cox Subject: Re: [PATCH v2 1/4] tty: serial: Add 8250 earlycon to support noinit option Message-ID: <20150202184639.GA29752@kroah.com> References: <1421068104-30463-2-git-send-email-eddie.huang@mediatek.com> <54CE53F3.5040709@hurleysoftware.com> <54CE6FD9.5030606@hurleysoftware.com> <1422846994.5512.25.camel@mtksdaap41> <54CEF2C8.1050808@hurleysoftware.com> <20150202042843.GA24765@kroah.com> <54CF07F3.2040100@hurleysoftware.com> <20150202052423.GA3346@kroah.com> <1422855202.26131.31.camel@mtksdaap41> <54CF0E96.10703@hurleysoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54CF0E96.10703@hurleysoftware.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2941 Lines: 70 On Mon, Feb 02, 2015 at 12:43:50AM -0500, Peter Hurley wrote: > On 02/02/2015 12:33 AM, Eddie Huang wrote: > > Hi Peter, > > > > On Sun, 2015-02-01 at 21:24 -0800, Greg Kroah-Hartman wrote: > >> On Mon, Feb 02, 2015 at 12:15:31AM -0500, Peter Hurley wrote: > >>> On 02/01/2015 11:28 PM, Greg Kroah-Hartman wrote: > >>>> On Sun, Feb 01, 2015 at 10:45:12PM -0500, Peter Hurley wrote: > >>>>> On 02/01/2015 10:16 PM, Eddie Huang wrote: > >>> > >>>>> I'll respin proper patches on top of Greg's tty-testing branch with reverts > >>>>> for the noinit options. I noticed that one of the noinit patches actually > >>>>> has the linkage for the mtk earlycon, so I'll be sure to preserve that. > >>>> > >>>> I can just drop the patches in the tty-testing branch, that's what it is > >>>> there for :) > >>>> > >>>> Just let me know the specific patches and I will do so, thanks. > >>> > >>> Well that pretty much means dropping the 3 patches that add earlycon to > >>> 8250_mtk and then applying my patch (needs fixed to apply cleanly, which > >>> I can do) and then applying a fixed-up replacement patch to add earlycon > >>> to 8250_mtk (which I can also supply). > >>> > >>> Is that the way you want to go? > >> > >> Sounds good to me, send your patch, and I'll fix it all up tomorrow. > >> > >> thanks, > >> > >> greg k-h > > > > Actually, your patch is a little different from my original idea. > > Although my use case only care about divisor now, but other hardware > > setting is still hard-code, not from parameter. In init_port() > > function: > > serial8250_early_out(port, UART_LCR, 0x3); /* 8n1 */ > > serial8250_early_out(port, UART_IER, 0);/* no interrupt */ > > serial8250_early_out(port, UART_FCR, 0); /* no fifo */ > > serial8250_early_out(port, UART_MCR, 0x3); /* DTR + RTS */ > > > > This is why I propose a new option "noinit". > > > > After checking further, in my case, I found that your patch should be > > unnecessary because if skip baudrate, probe_baud() read DLL/DLM register > > and init_port() write the same DLL/DLM value back, no touch any high > > speed register, which means keep uart divisor setting as loader > > > > Since I don't take "console=uart,mmio32,,noinit" into > > consideration, it is good to drop my patches in the tty-testing branch. > > For my case, I can send another series without noinit, just 8250_mtk.c > > and its linkage modification in 8250_early.c > > Ok. > > Greg, > > The patches to drop from tty-testing are: > * 405017d Document: Modify 8250 earlycon kernel parameters > * 0dff3a4 tty: serial: 8250_mtk: Add earlycon > * b829735 tty: serial: Add 8250 earlycon to support noinit option Ok, now dropped, thanks. greg k-h -- 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/