From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751974AbdJSH7W (ORCPT ); Thu, 19 Oct 2017 03:59:22 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:57107 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751712AbdJSH7U (ORCPT ); Thu, 19 Oct 2017 03:59:20 -0400 Date: Thu, 19 Oct 2017 00:59:12 -0700 From: Christoph Hellwig To: Bjorn Helgaas Cc: Niklas Cassel , Niklas Cassel , Jesper Nilsson , Bjorn Helgaas , Rob Herring , Mark Rutland , Kishon Vijay Abraham I , Jingoo Han , Xiaowei Song , Peter Robinson , Tomasz Nowicki , Gabriele Paoloni , Duc Dang , linux-arm-kernel@axis.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/10] PCI: dwc: artpec6: add support for endpoint mode Message-ID: <20171019075912.GA10089@infradead.org> References: <20171013160914.3220-1-niklas.cassel@axis.com> <20171013160914.3220-9-niklas.cassel@axis.com> <20171016234326.GM25517@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171016234326.GM25517@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 16, 2017 at 06:43:26PM -0500, Bjorn Helgaas wrote: > understand it. I guess the idea is to build pcie-artpec6.o if either > CONFIG_PCIE_ARTPEC6_HOST or CONFIG_PCIE_ARTPEC6_EP is set (or both). > > Is this really the simplest way to express that in Kconfig? Both the > "if PCIE_ARTPEC6" and this ifneq thing are complicated and relatively > unusual. I thijnk the right style is to make PCIE_ARTPEC6 a hidden kconfig symbol without help text, and then have PCIE_ARTPEC6_HOST and PCIE_ARTPEC6_EP select it.