Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2837072imm; Fri, 19 Oct 2018 00:03:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV61h7XagoiUfoRlsgjsoEmSMjaXMw1VFeWe/l+RYK9//6QHbodvuyZvRNl9f76T2dqI42xTf X-Received: by 2002:a63:330e:: with SMTP id z14-v6mr4526265pgz.220.1539932585988; Fri, 19 Oct 2018 00:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539932585; cv=none; d=google.com; s=arc-20160816; b=LZEuuyC6Thek9CTFO0c33y8UjQkXpmFRmfSkdlNXSvzZ5wZVaQzZynz4lwcwxUIuCv i39EPywju0iJD6ES0QZFbrih65/rQTw8FOZIaExbOFJKZ4XO6esklXbix9hJBB2dk3gq wkX/xmGgBwZsouINIoKvIOVwfBJ65wJI7dyaxUquvJrDUxkqqt7U0l3M224c4GDB7UE3 my3xFwdI3sgdk5rdoRsh/2cnAlmcjkpS8FBIdxyxVWL68woxujxGTqrrlu5tNmFLreOL uUZ0EzUiAUkisItqeD+5o2I1n14kVmJCIMUlGis4aLtJUQlOt7TRFsRuASbcg+YpsWdR 2o3Q== 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; bh=fm7EPrEV0HWF6jZ91z2JIFJvprXu5B7BZo2IQTSJ3R8=; b=Pkfga0kQnjMqb8tvoBVENpqn9xorRD+MB/Vpg/WrBdcSVniR1k8oeMPZZjqkDv1w9M 6QCk043VjlnGmalP0AGkc8IcWRYpFNx4BnC9BxLCxpRLyoOzNrdSpAJSEfAggTF4fIlK 4G4T8r9oCZY6JEGxLQt/bQIyhNum2e15EnFAKG+sRzJ3B3Z7/whsw/B81wPjO0HXfBN5 QCKnAO/zPWJhsdvbp48lfue38HbNPt1bSY3mQnn6caFnx2OzVIyAjNXaMWu8EyOtsln+ 8JwJOto/mCB7G7+MvnVKnRPevytJklMqVWXtY/MxFHNwXymGr2Fz1/hcVMw9COcIzyp3 oUVA== ARC-Authentication-Results: i=1; mx.google.com; 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 e16-v6si7222109pgb.597.2018.10.19.00.02.51; Fri, 19 Oct 2018 00:03: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; 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 S1727017AbeJSPHN (ORCPT + 99 others); Fri, 19 Oct 2018 11:07:13 -0400 Received: from verein.lst.de ([213.95.11.211]:43697 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbeJSPHM (ORCPT ); Fri, 19 Oct 2018 11:07:12 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 9C19C68C76; Fri, 19 Oct 2018 09:02:24 +0200 (CEST) Date: Fri, 19 Oct 2018 09:02:24 +0200 From: Christoph Hellwig To: Masahiro Yamada Cc: Christoph Hellwig , linux-pci@vger.kernel.org, mporter@kernel.crashing.org, Alex Bounine , Dominik Brodowski , Linux Kbuild mailing list , linux-scsi , linux-arch , Linux Kernel Mailing List , linuxppc-dev Subject: Re: [PATCH 4/8] PCI: consolidate PCI config entry in drivers/pci Message-ID: <20181019070224.GB30556@lst.de> References: <20181017080201.10866-1-hch@lst.de> <20181017080201.10866-5-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) 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 02:07:04PM +0900, Masahiro Yamada wrote: > We could add 'depends on HAVE_PCI' or something > to guard it to avoid changing the logic. I guess that makes sense. > 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' ? It does not depend on the normal PCI support, so I don't think this is the right thing to do.