Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751726AbbESRUz (ORCPT ); Tue, 19 May 2015 13:20:55 -0400 Received: from mga02.intel.com ([134.134.136.20]:16549 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751928AbbESRUu (ORCPT ); Tue, 19 May 2015 13:20:50 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,459,1427785200"; d="scan'208";a="697270934" Date: Tue, 19 May 2015 10:32:26 -0700 From: Bin Gao To: Paul Bolle Cc: One Thousand Gnomes , Greg Kroah-Hartman , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Hurley , Jiri Slaby Subject: Re: [PATCH v3 1/2] serial_core: add pci uart early console support Message-ID: <20150519173224.GA202975@worksta> References: <20150518212152.GA95407@worksta> <1432036867.9091.75.camel@x220> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1432036867.9091.75.camel@x220> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1482 Lines: 42 On Tue, May 19, 2015 at 02:01:07PM +0200, Paul Bolle wrote: > On Mon, 2015-05-18 at 14:21 -0700, Bin Gao wrote: > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @@ -2228,6 +2228,8 @@ config PCI > > your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or > > VESA. If you have PCI, say Y, otherwise N. > > > > + select HAVE_EARLY_PCI > > + > > It's legal to have options after the help text of a Kconfig entry. It's > also very uncommon to do that. Please put this select statement before > the line reading "---help---" of the PCI entry. > Will fix this in next patch set. > > +config HAVE_EARLY_PCI > > + def_bool y > > You probably want just > bool > > here. Because this symbol has no further dependencies, which means > HAVE_EARLY_PCI will now always be set to 'y'. That, in turn, makes the > select you added above pointless. > Yes, you're right. bool is better. > > + help > > + This option indicates that a group of APIs are available (in > > + asm/pci-direct.h) so the kernel can access pci config registers > > + before the PCI subsystem is initialized. Any arch that supports > > Is this expected to be used outside of X86? Yes, drivers/tty/serial/serial_core.c is going to use it. -- 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/