From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [PATCH v2 -next 03/13] console: Add extensible console matching Date: Sat, 7 Mar 2015 03:57:54 +0100 Message-ID: <20150307025754.GA23812@kroah.com> References: <1425225958-17908-1-git-send-email-peter@hurleysoftware.com> <1425225958-17908-4-git-send-email-peter@hurleysoftware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1425225958-17908-4-git-send-email-peter@hurleysoftware.com> Sender: linux-kernel-owner@vger.kernel.org To: Peter Hurley Cc: Andrew Morton , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Rob Herring List-Id: linux-serial@vger.kernel.org On Sun, Mar 01, 2015 at 11:05:48AM -0500, Peter Hurley wrote: > Add match() method to struct console which allows the console to > perform console command line matching instead of (or in addition to) > default console matching (ie., by fixed name and index). > > The match() method returns 0 to indicate a successful match; normal > console matching occurs if no match() method is defined or the > match() method returns non-zero. The match() method is expected to set > the console index if required. > > Re-implement earlycon-to-console-handoff with direct matching of > "console=uart|uart8250,..." to the 8250 ttyS console. > > Signed-off-by: Peter Hurley > --- > drivers/tty/serial/8250/8250_core.c | 64 +++++++++++++++++++++++++++--------- > drivers/tty/serial/8250/8250_early.c | 23 ------------- > include/linux/console.h | 3 +- > include/linux/serial_8250.h | 2 -- > kernel/printk/printk.c | 52 ++++++++++------------------- > 5 files changed, 67 insertions(+), 77 deletions(-) This didn't apply, so I've stopped here. thanks, greg k-h