From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752647AbdJSK5j (ORCPT ); Thu, 19 Oct 2017 06:57:39 -0400 Received: from bastet.se.axis.com ([195.60.68.11]:56408 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751824AbdJSK5g (ORCPT ); Thu, 19 Oct 2017 06:57:36 -0400 Subject: Re: [PATCH 08/10] PCI: dwc: artpec6: add support for endpoint mode To: Christoph Hellwig , Bjorn Helgaas CC: Jesper Nilsson , Bjorn Helgaas , Rob Herring , Mark Rutland , "Kishon Vijay Abraham I" , Jingoo Han , "Xiaowei Song" , Peter Robinson , Tomasz Nowicki , Gabriele Paoloni , Duc Dang , , , , References: <20171013160914.3220-1-niklas.cassel@axis.com> <20171013160914.3220-9-niklas.cassel@axis.com> <20171016234326.GM25517@bhelgaas-glaptop.roam.corp.google.com> <20171019075912.GA10089@infradead.org> From: Niklas Cassel Message-ID: <9a294a12-4f9e-74cf-b7c0-7e45a9ca91f5@axis.com> Date: Thu, 19 Oct 2017 12:57:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171019075912.GA10089@infradead.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: XBOX02.axis.com (10.0.5.16) To XBOX02.axis.com (10.0.5.16) X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19/2017 09:59 AM, Christoph Hellwig wrote: > 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. > Thanks for the suggestion Christoph! I will make this change for both pci-dra7xx and pcie-artpec6 in the next version of the patch series, and then Kishon can ACK/NACK.