Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3482947imm; Fri, 19 Oct 2018 11:19:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV60+IZ1VCQ7HzDyq2Rerba6LPQoT66wePoEGkGmQsEOX2PbOFge5FS+sdJukju0VsTTcWj/D X-Received: by 2002:a63:ee13:: with SMTP id e19-v6mr32484831pgi.8.1539973145560; Fri, 19 Oct 2018 11:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539973145; cv=none; d=google.com; s=arc-20160816; b=ZZ6cTWzrjKcncCia+u1058Yee6G6xtgbK4MCq+Pi8Z+eXS0MPxx4ZJre6wcSSvm//E Lug+gMwaDKX/ySf6RfTmPgHBAtREspN8khup2Wrx45IT9FQ+Y5RPLr8cBASU1IaGzbPZ ca+R6i4bO2MWENTBgtI5KKwGYZlHhICynpyFwFhBx6QDiucAIlM6FYxhwC3a44OLp2UL sisGHkj0twL5V7KmGCVjWHNM4Pa6Yl1qBopH6UFFauhQiLmZ8X85t1m+krgk8jaoYImN ffuVrS6Ar+wuxt6Xk7LpMJApMG4cMHpZLu8bcvEVfciFiZ3fwgAcDjMTH9hde/B/edag R7ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=nmeckNFphp/x15aPxZY+QfLLPrluX8Ha3iNeceCHXR0=; b=h+6k3g2OYC/hN57lKmhXW7/6PRu2yfP64O9W+AVPeOT1hgkTsvrjzstOXBpYK7nnxA sREzZLZ5Agzzdg2epo63pzOBdZaAG2XKRqhlZwQrqjghi2nCXrHPBV91ts+By7t3iOoX Ix0Jft03xVg3O/UdEX7RZyIlFu07K8jMgminXF+tAQipc8xiyVbMay6FWhrqskeS4SlI dxW+6LB5PaXdTROagJ3ynk1hWW0+uz4TlLecUgBhJM+7CjbPk2NXmCMJliR9DdotpOhm KP0ZBwvdVZLsf0W9DV0xiK9+/l9rIo6wLII8MSHuA9C1YOu89RWCrLjxDMP6mlqYgkI7 zE1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=T5bqeL5L; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7-v6si24630277plz.427.2018.10.19.11.18.49; Fri, 19 Oct 2018 11:19:05 -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=pass header.i=@sifive.com header.s=google header.b=T5bqeL5L; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727570AbeJTCZf (ORCPT + 99 others); Fri, 19 Oct 2018 22:25:35 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41947 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727410AbeJTCZf (ORCPT ); Fri, 19 Oct 2018 22:25:35 -0400 Received: by mail-pg1-f196.google.com with SMTP id 23-v6so16094078pgc.8 for ; Fri, 19 Oct 2018 11:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=nmeckNFphp/x15aPxZY+QfLLPrluX8Ha3iNeceCHXR0=; b=T5bqeL5LfyW6P8gqFxda7vnjy6IAxOqPyFkv0PgB5x/+Qu7ZfuV3o3xTckTa9V7j2G jF6wwHddEDCK+1JLYoYg+udap+i4lWOA7klTDzmnGkfnebOjG6We5MAhTvm4VzVmdePH 6sarJYOZ8BnDIJT2GW5ap+HewSnzP1LQlRMh7GPPw2cvXoUxFpVkksIJQeiWfeaRGduz pW1ZEIF133SYZFttuxW+RPkYBReeIujsNcqMSIcSjQzKB9uYQLjCOKDcISJojMpPuzi3 dOegDod43mpUiqUfB7mi34SZ7/GlljCYAAd/pL+U9XYwz5ycYIivUIjWqeoics9ga0LT W8lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=nmeckNFphp/x15aPxZY+QfLLPrluX8Ha3iNeceCHXR0=; b=hoNd7tJlRqn9y6NOMRnzvEJMrUj68puPEARIul3bH6oKUW+83OzjzMZ6ZVfY2Mwkx4 E+mK0hWijMdOTIvrQUXgf4t5ItbYqbz6plIc3CrSJt4hmLUQbdw/XUcsJ7txw9WaUg1R uJu3x4ffN+Eu0I3MgIQJs2mbccUq817UfrqF2ZE3M3u5eK7SyrORkrdH8QIG7TFtRJdk FLYYdET9eUek7nntMdFzYhM0MWK3O+jkTkBQm3S85r/tK2fEhptrdjvnkCfOQNpq5rMf lwAdv66YjSEw84JI/kqWC/oeQGGFxA87M28Y648YXbNN+T81+HDASPv/ZwVvjhxCGV83 WFww== X-Gm-Message-State: ABuFfoiRs9nq9DnGPHs2C8nOidCIyevynMTUKGmqdXMA7m6DNAOjsPu7 Zf5DH2j+xAetFODhwPr8oWRTuQ== X-Received: by 2002:a63:3c46:: with SMTP id i6-v6mr33222663pgn.286.1539973103049; Fri, 19 Oct 2018 11:18:23 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id e3-v6sm31153305pgc.71.2018.10.19.11.18.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Oct 2018 11:18:22 -0700 (PDT) Date: Fri, 19 Oct 2018 11:18:22 -0700 (PDT) X-Google-Original-Date: Fri, 19 Oct 2018 11:11:52 PDT (-0700) Subject: Re: [PATCH 6/9] PCI: consolidate PCI config entry in drivers/pci In-Reply-To: <20181019120952.32763-7-hch@lst.de> CC: yamada.masahiro@socionext.com, mporter@kernel.crashing.org, alex.bou9@gmail.com, linux@dominikbrodowski.net, linux-kbuild@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-scsi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Oct 2018 05:09:49 PDT (-0700), Christoph Hellwig wrote: > There is no good reason to duplicate the PCI menu in every architecture. > Instead provide a selectable HAVE_PCI symbol that indicates availability > of PCI support and the handle the rest in drivers/pci. > > Note that for powerpc we now select HAVE_PCI globally instead of the > convoluted mess of conditional or or non-conditional support per board, > similar to what we do e.g. on x86. For alpha PCI is selected for the > non-jensen configs as it was the default before, and a lot of code does > not compile without PCI enabled. On other architectures with limited > PCI support that wasn't as complicated I've left the selection as-is. > > Signed-off-by: Christoph Hellwig > Acked-by: Max Filippov > Acked-by: Thomas Gleixner > Acked-by: Bjorn Helgaas ... > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index a344980287a5..071952cd4cae 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -39,8 +39,10 @@ config RISCV > select SPARSE_IRQ > select SYSCTL_EXCEPTION_TRACE > select HAVE_ARCH_TRACEHOOK > + select HAVE_PCI > select MODULES_USE_ELF_RELA if MODULES > select THREAD_INFO_IN_TASK > + select PCI_MSI if PCI > select RISCV_TIMER > select GENERIC_IRQ_MULTI_HANDLER > select ARCH_HAS_PTE_SPECIAL > @@ -216,28 +218,12 @@ source "kernel/Kconfig.hz" > > endmenu > > -menu "Bus support" > - > -config PCI > - bool "PCI support" > - select PCI_MSI > - help > - This feature enables support for PCI bus system. If you say Y > - here, the kernel will include drivers and infrastructure code > - to support PCI bus devices. > - > - If you don't know what to do here, say Y. > - > config PCI_DOMAINS > def_bool PCI > > config PCI_DOMAINS_GENERIC > def_bool PCI > > -source "drivers/pci/Kconfig" > - > -endmenu > - > menu "Power management options" > > source kernel/power/Kconfig Reviewed-by: Palmer Dabbelt I'm assuming this will go in via PCI tree of some sort, so I'm not going to touch it any further. Thanks for cleaning this up!