Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2754451imm; Thu, 18 Oct 2018 22:08:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV63KUgWt9py0mUYQ0plJVl5l1RmNP60uyt/hWcIBtFBHyFjvdhNGHHEr5dz3KldKKj3/8AaB X-Received: by 2002:a17:902:6b82:: with SMTP id p2-v6mr32873851plk.50.1539925707694; Thu, 18 Oct 2018 22:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539925707; cv=none; d=google.com; s=arc-20160816; b=fX1dEzhwSH6rdHeymyeKUp3XlCez57/B356CG5uz7SFkSXul+FpFX1T1cwYoTY2Sxw eVneB41JCAlv4GSRmqO+vaCUg0n3tH8xrHTH5/GVLmILLcHtmZmNoyq1LKWIP+ZhT2EQ wh6qhjYzKlO+A43RQb5kGQluBi932RUw4+/ewBqopPzHz76ytxSS+JZsaOEr4pM5ltHJ BZAOI9s/6Uu0Eca7+MjE32GWGiTpN/bt3rPQZc2fBopY5EtS2efRSOQhwSZWy76qufXW 0K562h6g7zg6A/HzaK46TTbQMFjfid0R6uLYjHBM98+H/jUCbda6WdB4TYHmMbcZbFFA vYYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=mYjXID3VQmfIEufK9cARuqSnPYUqryDcSZUlpJZAewA=; b=FHTwOaSEF/u+rg+pqM5uyVuy73sDo3zGz6thW1KY9tFc5a40rhSYNO9NVi3FlSwVzV qTiP66wtI293GbkTqAtsRpvReeU6IBEeT6xjGg6obBYHW+c4CZ7QKRS7Ap41ZS3ddHLr D7/n2mtIvpnBtVJJdwo9B26UJUk8/UY03fKFp06QTDnLD19W9xMCmoytaCZzxJU77iwN pVoOOPG6m1FSW1zCWhSlo6UiiuYTeZNPBg022QJ7Hph6RaoKUIepDNxEh2T0KWkZStsf bdZOBeunNp8lZI7B13aknK88sM9H6ax3oB4IXflk2hJ/wmDnqO+eNGB3eacqJkANWGgd dZ0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=1JTGbee2; 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 p5-v6si10151512plo.363.2018.10.18.22.08.08; Thu, 18 Oct 2018 22:08:27 -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=@nifty.com header.s=dec2015msa header.b=1JTGbee2; 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 S1727188AbeJSNML (ORCPT + 99 others); Fri, 19 Oct 2018 09:12:11 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:61395 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726942AbeJSNML (ORCPT ); Fri, 19 Oct 2018 09:12:11 -0400 Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (authenticated) by conssluserg-03.nifty.com with ESMTP id w9J57fTS026021; Fri, 19 Oct 2018 14:07:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com w9J57fTS026021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1539925662; bh=mYjXID3VQmfIEufK9cARuqSnPYUqryDcSZUlpJZAewA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1JTGbee2r9AFN486BefMRz+x/MnvhV782D5VOFcoLzFR25CTcHR80+3mm3JDRkCVY voUk5wfnlP2AHBX8/ksMEsrO82fOFpQh8Xt/3ATIox7X5C42WwK8Qw5H74XbFDiOFO iP71hw/QkMrPNLCs71S8JySOqbsNhxkG/V34wEH8pw/miIPOUnOZdWY4yg8+Og9pqA C5yp2T7BXiiTOOZNfKEjkgjDAJQNW3CEdLH00x6on3LdN7JGEzWlkpZneYvvFOQ35S B+5KF7EiHwXrgeZ3LUtukmSe2etI+MKICK56+U4Yo2d3ujJPG2XB2iL89NuL8N9Pnj r6KvV12Ubwxrg== X-Nifty-SrcIP: [209.85.217.54] Received: by mail-vs1-f54.google.com with SMTP id i10so24520711vsm.13; Thu, 18 Oct 2018 22:07:41 -0700 (PDT) X-Gm-Message-State: ABuFfohJZwtVE5evqJlF5rKjjTo4aoJZEf5fJTkmcrRkt7e0vCV/LhAf 2dqtQSBECpaLs2Ct3qrZEbOmT8Z1gje5qo+22go= X-Received: by 2002:a67:3793:: with SMTP id j19mr13514804vsi.215.1539925660531; Thu, 18 Oct 2018 22:07:40 -0700 (PDT) MIME-Version: 1.0 References: <20181017080201.10866-1-hch@lst.de> <20181017080201.10866-5-hch@lst.de> In-Reply-To: <20181017080201.10866-5-hch@lst.de> From: Masahiro Yamada Date: Fri, 19 Oct 2018 14:07:04 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/8] PCI: consolidate PCI config entry in drivers/pci To: Christoph Hellwig , linux-pci@vger.kernel.org Cc: mporter@kernel.crashing.org, Alex Bounine , Dominik Brodowski , Linux Kbuild mailing list , linux-scsi , linux-arch , Linux Kernel Mailing List , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 5:04 PM Christoph Hellwig wrote: > > There is no good reason to duplicate the PCI menu in every architecture. > Instead provide a selectable HAS_PCI symbol that indicates availability HAS_PCI -> HAVE_PCI > 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: Thomas Gleixner > Acked-by: Bjorn Helgaas Just in case, could you double-check these? PCI_ENDPOINT PCI_ENDPOINT_CONFIGFS PCI_EPF_TEST Previously, architecture without "source drivers/pci/Kconfig" could not enable PCI_ENDPOINT. Now, any architecture can enable it regardless of its actual PCI availability because PCI_ENDPOINT is only guarded by HAS_DMA. We could add 'depends on HAVE_PCI' or something to guard it to avoid changing the logic. config PCI_ENDPOINT bool "PCI Endpoint Support" depends on HAVE_PCI # Is this correct ?? depends on HAS_DMA or better to have 'depends on PCI' ? PCI ML is also CC'ed, so comments are appreciated. -- Best Regards Masahiro Yamada