Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp671458imd; Thu, 1 Nov 2018 03:48:42 -0700 (PDT) X-Google-Smtp-Source: AJdET5fLx5wW/dlU/Nqr/cWNn6XJ1f2045m9prHFEws9xzwZugaaeZfwV2gAjBzcRZ4jY30ZjgIQ X-Received: by 2002:a62:1308:: with SMTP id b8-v6mr7018735pfj.215.1541069322159; Thu, 01 Nov 2018 03:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541069322; cv=none; d=google.com; s=arc-20160816; b=k78vNuHCumNdskSOeiNRiqW9i1tzCw5IF/qb4dbnQb/9fC1IvEaZAPFD1DPkP/ldFb i9de9wCSXSdfOasDoKNA0wAu1XGHKRajY5JPJnutUL366ziPVbSTaWx1TlcvFX+1Ee1n idJEjotPti+VjhXV6BkTk0z8twwMqhCPkuRy1H3HXhkec2XSpT9ixFaxjOjRXooP11Bp m12d3qnadQ1tXxnkkVEe9URWagypldPbA5SSS7gjsE12SdJ8ir9otRC/0IoQQ8jcS8mZ 3CQbRw/utKCnvlsac1jnF7HUQeMH4y0gvKWggUf4m0iP1E2Ql0yCPeZiJQ50UDsn7ZAU a9iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pfBYPcKEHFmp/09Hz2p1i9SED+F/1DOEjiI7amX/IgY=; b=MDTUudRUXU1vkqpXkuz82Pm1AwVq+QSG3TKxvkcJHmitI+Z6MhGLi/U0c44QTPLF8w 7L08qWpVr2TAVd/J4Wf+90TjghoJJ3KUEfmJK/vTzWIYsFsl5gSkMlbl2y5BQRHu+qSY 44Z2cB1hR8kcQDxvFvxBAXF194FtygZHCMEJgiiaU/OkkEvwoPnoHvmprsHCoC+qoR82 vzsebAmS2GKkWEhNdwb+34tHi75HM1MQs8yQqrYPRc2sC2RCFyUeHKRSp8zu20x9UutO +04b8p+c0c8Cepj+nxsYMjTBeXYusZu6qYhhgYGgisNVrpYqNjR7AVeohoVZDV/ga/A+ BfBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=mcK7rckW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e39-v6si22771934plg.366.2018.11.01.03.48.24; Thu, 01 Nov 2018 03:48:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=mcK7rckW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728110AbeKAT1h (ORCPT + 99 others); Thu, 1 Nov 2018 15:27:37 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:55884 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727583AbeKAT1h (ORCPT ); Thu, 1 Nov 2018 15:27:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pfBYPcKEHFmp/09Hz2p1i9SED+F/1DOEjiI7amX/IgY=; b=mcK7rckWm93VnKfbX3LmKsGrV YYuXCUZtnmAAVC7MLl/1vn773bBPxQv2RCflQF/J6tDIxIzBQiWD9MlJKPgwwnXaUKHnBLuDjPkKt UYTVIT0cbKiCy3FQvSpNuFlpgkcohc222qwEtW+Tq3MWDrCayYfcQ0ffbR6KsSm42BXfg=; Received: from n2100.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:4f86]:43519) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gIAA0-0004WL-HU; Thu, 01 Nov 2018 10:25:08 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1gIA9s-0006ug-Cy; Thu, 01 Nov 2018 10:25:00 +0000 Date: Thu, 1 Nov 2018 10:24:58 +0000 From: Russell King - ARM Linux To: Masahiro Yamada Cc: Christoph Hellwig , linux-arch , linux-scsi , Linux Kbuild mailing list , linux-pci@vger.kernel.org, Linux Kernel Mailing List , Dominik Brodowski , Alex Bounine , mporter@kernel.crashing.org, linuxppc-dev , linux-arm-kernel Subject: Re: [PATCH 6/9] PCI: consolidate PCI config entry in drivers/pci Message-ID: <20181101102458.GN30658@n2100.armlinux.org.uk> References: <20181019120952.32763-1-hch@lst.de> <20181019120952.32763-7-hch@lst.de> <20181019122228.GJ30658@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 19, 2018 at 09:58:46PM +0900, Masahiro Yamada wrote: > On Fri, Oct 19, 2018 at 9:23 PM Russell King - ARM Linux > wrote: > > > > index a68b34183107..b185794549be 100644 > > > --- a/arch/arm/mach-pxa/Kconfig > > > +++ b/arch/arm/mach-pxa/Kconfig > > > @@ -125,7 +125,7 @@ config MACH_ARMCORE > > > bool "CompuLab CM-X255/CM-X270 modules" > > > select ARCH_HAS_DMA_SET_COHERENT_MASK if PCI > > > select IWMMXT > > > - select MIGHT_HAVE_PCI > > > + select HAVE_PCI > > > select NEED_MACH_IO_H if PCI > > > select PXA25x > > > select PXA27x > > > > This is wrong. "MIGHT_HAVE_PCI" is _not_ the same as "HAVE_PCI" - we > > have a bunch of platforms that mandatorily have PCI and these select > > PCI directly. "MIGHT_HAVE_PCI" controls the _visibility_ of the PCI > > menu option, but does not prevent it being selected. Your patch will > > cause Kconfig to complain for those which mandatorily have PCI but > > do not set HAVE_PCI. > > > Good catch! > But, adding a bunch of 'select HAVE_PCI' along with 'select PCI' is ugly. > > Do you have any suggestion? > > How about letting CONFIG_ARM to select HAVE_PCI ? Well, the situation we have on ARM is rather optimal - when the rest of the configuration supports PCI, PCI is made visible. When there's no hardware support for PCI, PCI is hidden. When PCI is mandatory, PCI is selected and mostly always hidden. It seems that with this consolidation, we lose that - we end up with PCI being visible for every ARM config, not only those where PCI is "impossible" but also for those where PCI is forcefully selected. That said, offering PCI for platforms that do not have any possibility of PCI hardware shouldn't cause any compile issues, and would increase build coverage - but I'd say it wouldn't _usefully_ increase build coverage. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up