Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1157820

Re: [PATCH v5 2/2] arch/x86: remove pci uart early console from early_prink.c

From Bin Gao <bin.gao@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH v5 2/2] arch/x86: remove pci uart early console from early_prink.c
Date 2015-06-03 18:30 +0200
Message-ID <pxjIf-6rK-35@gated-at.bofh.it> (permalink)
References <pvxcD-3xg-29@gated-at.bofh.it> <pxg7E-14D-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jun 03, 2015 at 08:35:29AM -0400, Peter Hurley wrote:
> > +/* x86 uses "earlyprintk=xxx", so we keep the compatibility here */
> > +#ifdef CONFIG_X86
> > +static int __init param_setup_earlycon_x86(char *buf)
> > +{
> > +	return param_setup_earlycon(buf);
> > +}
> > +early_param("earlyprintk", param_setup_earlycon_x86);
> 
> I'm concerned that this effectively makes earlyprintk= a synonym for
> earlycon=, which may have unforeseen consequences. I'd rather this
> specifically parse for replacement functionality, ie., only command line
> parameters of the form:
> 
> 	earlyprintk=pciserial,...
> 
> Regards,
> Peter Hurley
> 

Something like this: ?

/*
 * x86 uses "earlyprintk=xxx", so we keep the compatibility here.
 * But we only handle the earlyprintk=uart8250,pci[32]B:D.F[,options] case.
 */
#ifdef CONFIG_X86
static int __init param_setup_earlycon_x86(char *buf)
{
        if (strncmp("uart8250,pci", 12))
                return -EINVAL;
 
        return param_setup_earlycon(buf);
}
early_param("earlyprintk", param_setup_earlycon_x86);

Thanks,
Bin

--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v5 2/2] arch/x86: remove pci uart early console from early_prink.c Peter Hurley <peter@hurleysoftware.com> - 2015-06-03 14:40 +0200
  Re: [PATCH v5 2/2] arch/x86: remove pci uart early console from  early_prink.c Bin Gao <bin.gao@linux.intel.com> - 2015-06-03 18:30 +0200

csiph-web