Received: by 10.223.164.202 with SMTP id h10csp3816005wrb; Mon, 20 Nov 2017 05:34:18 -0800 (PST) X-Google-Smtp-Source: AGs4zMawUiLvJ92BppkoDZnXIs4O7QScC0QtxNjJH5JlAJcYepnLik/INJrDcXa9P9wEZ+M40gzG X-Received: by 10.99.60.26 with SMTP id j26mr13408744pga.256.1511184858881; Mon, 20 Nov 2017 05:34:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511184858; cv=none; d=google.com; s=arc-20160816; b=zCRKx/csJfgNsEY89703ThTrAXYVNGGROdaxPMQ+ZUBd5DbQKF7rSFtmPk9ztkLCzA ySCvBUrWZT3CXf+YCd2z/pH+O+YBGW2+28vhh1686etDATowt0yJDyzJGlemt84N+7R+ n3KfQ9olpiO8QniHGiy7ceX5cyQqgD2A5toesjkQIsiTL2Y8uyAjR4k2I1YjU5aM1hT7 136Oaqr4CuZaZbu75d8RYODoKvZa4U06TQ7yUW0/EzjsdavY0QAU0VAdKzHfbHvABnal b9gef2cNhxsn0hk8NV5VTFmcasBVCfayAsAfFh/dkkU7/jijRG/cCkbJYjeYtnHxf/Y+ FvvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=XxFIIHqBGK6AgpeDvlIKpzSNDCzQpZrPZMsrAcHI73k=; b=qKWAfxCu7d6WW7iZ/O60CXwoYFDRNjuDlpYGMXCkJZsPranNZnyIUYra+kiRm58wD0 g/kASvEL7oqUyeb1Y/gpEJyjzd6wWVXcUug6vhqaj9vkxpVnF0fJiAkp0qQJNKQZYbeP 6sU7TNmK53jEOtdlzbMjIa5n740dUsNOWXEDu9jYK/SuZZeJZq3697xPVdCPeU7D6LHO bvZPE3kuOjf5YjciORJH3x08V8ZgTIzBhasGJk0j3siYo5RWeH4Djk0zvHy0WG2/Qadu dfKFpBkYeY3ja+GYtDbuW9O94pXfMHWOH1zCH/vEvgN5rm9SfqXBYPO7oNJ8rUiaM+lJ UUgA== 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 g66si8944793pfj.184.2017.11.20.05.34.08; Mon, 20 Nov 2017 05:34:18 -0800 (PST) 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 S1751409AbdKTNdT (ORCPT + 66 others); Mon, 20 Nov 2017 08:33:19 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:39598 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751151AbdKTNdQ (ORCPT ); Mon, 20 Nov 2017 08:33:16 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id E8825180E6; Mon, 20 Nov 2017 14:33:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id 150-jTFUsphu; Mon, 20 Nov 2017 14:33:10 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id 59964183B0; Mon, 20 Nov 2017 14:33:10 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0EF601A08C; Mon, 20 Nov 2017 14:33:10 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 040191A070; Mon, 20 Nov 2017 14:33:10 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder02.se.axis.com (Postfix) with ESMTP; Mon, 20 Nov 2017 14:33:09 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by seth.se.axis.com (Postfix) with ESMTP id EC814198F; Mon, 20 Nov 2017 14:33:09 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id E7AC8400FE; Mon, 20 Nov 2017 14:33:09 +0100 (CET) From: Niklas Cassel To: Lorenzo Pieralisi , Bjorn Helgaas Cc: Niklas Cassel , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 07/18] PCI: dwc: dra7xx: Refactor Kconfig and Makefile handling for host/ep mode Date: Mon, 20 Nov 2017 14:32:10 +0100 Message-Id: <20171120133222.27771-8-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171120133222.27771-1-niklas.cassel@axis.com> References: <20171120133222.27771-1-niklas.cassel@axis.com> X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Refactor the Kconfig and Makefile handling for host/ep mode, since the previous handling was a bit unorthodox and would have been a bit bloated once more DWC based controllers added support for ep mode. Signed-off-by: Niklas Cassel Acked-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig | 45 ++++++++++++++++++++++----------------------- drivers/pci/dwc/Makefile | 4 +--- 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/drivers/pci/dwc/Kconfig b/drivers/pci/dwc/Kconfig index 113e09440f85..3954353e3e2e 100644 --- a/drivers/pci/dwc/Kconfig +++ b/drivers/pci/dwc/Kconfig @@ -15,39 +15,38 @@ config PCIE_DW_EP select PCIE_DW config PCI_DRA7XX - bool "TI DRA7xx PCIe controller" - depends on SOC_DRA7XX || COMPILE_TEST - depends on (PCI && PCI_MSI_IRQ_DOMAIN) || PCI_ENDPOINT - depends on OF && HAS_IOMEM && TI_PIPE3 - help - Enables support for the PCIe controller in the DRA7xx SoC. There - are two instances of PCIe controller in DRA7xx. This controller can - work either as EP or RC. In order to enable host-specific features - PCI_DRA7XX_HOST must be selected and in order to enable device- - specific features PCI_DRA7XX_EP must be selected. This uses - the DesignWare core. - -if PCI_DRA7XX + bool config PCI_DRA7XX_HOST - bool "PCI DRA7xx Host Mode" - depends on PCI - depends on PCI_MSI_IRQ_DOMAIN + bool "TI DRA7xx PCIe controller Host Mode" + depends on SOC_DRA7XX || COMPILE_TEST + depends on PCI && PCI_MSI_IRQ_DOMAIN + depends on OF && HAS_IOMEM && TI_PIPE3 select PCIE_DW_HOST + select PCI_DRA7XX default y help - Enables support for the PCIe controller in the DRA7xx SoC to work in - host mode. + Enables support for the PCIe controller in the DRA7xx SoC to work in + host mode. There are two instances of PCIe controller in DRA7xx. + This controller can work either as EP or RC. In order to enable + host-specific features PCI_DRA7XX_HOST must be selected and in order + to enable device-specific features PCI_DRA7XX_EP must be selected. + This uses the DesignWare core. config PCI_DRA7XX_EP - bool "PCI DRA7xx Endpoint Mode" + bool "TI DRA7xx PCIe controller Endpoint Mode" + depends on SOC_DRA7XX || COMPILE_TEST depends on PCI_ENDPOINT + depends on OF && HAS_IOMEM && TI_PIPE3 select PCIE_DW_EP + select PCI_DRA7XX help - Enables support for the PCIe controller in the DRA7xx SoC to work in - endpoint mode. - -endif + Enables support for the PCIe controller in the DRA7xx SoC to work in + endpoint mode. There are two instances of PCIe controller in DRA7xx. + This controller can work either as EP or RC. In order to enable + host-specific features PCI_DRA7XX_HOST must be selected and in order + to enable device-specific features PCI_DRA7XX_EP must be selected. + This uses the DesignWare core. config PCIE_DW_PLAT bool "Platform bus based DesignWare PCIe Controller" diff --git a/drivers/pci/dwc/Makefile b/drivers/pci/dwc/Makefile index 41ba499c96ee..a9d8a6fb48e3 100644 --- a/drivers/pci/dwc/Makefile +++ b/drivers/pci/dwc/Makefile @@ -3,9 +3,7 @@ obj-$(CONFIG_PCIE_DW) += pcie-designware.o obj-$(CONFIG_PCIE_DW_HOST) += pcie-designware-host.o obj-$(CONFIG_PCIE_DW_EP) += pcie-designware-ep.o obj-$(CONFIG_PCIE_DW_PLAT) += pcie-designware-plat.o -ifneq ($(filter y,$(CONFIG_PCI_DRA7XX_HOST) $(CONFIG_PCI_DRA7XX_EP)),) - obj-$(CONFIG_PCI_DRA7XX) += pci-dra7xx.o -endif +obj-$(CONFIG_PCI_DRA7XX) += pci-dra7xx.o obj-$(CONFIG_PCI_EXYNOS) += pci-exynos.o obj-$(CONFIG_PCI_IMX6) += pci-imx6.o obj-$(CONFIG_PCIE_SPEAR13XX) += pcie-spear13xx.o -- 2.14.2 From 1585200901007173546@xxx Mon Nov 27 06:49:45 +0000 2017 X-GM-THRID: 1585200901007173546 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread