Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1082196ybd; Wed, 26 Jun 2019 10:52:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDr+o7QR6DePkgs79BBktoOG8qFZTPCs/I0T/PL9J+/2XMB42EH7l2iK6GPRNM5a00W4t9 X-Received: by 2002:a17:902:70cc:: with SMTP id l12mr6880104plt.87.1561571574139; Wed, 26 Jun 2019 10:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561571574; cv=none; d=google.com; s=arc-20160816; b=BTKjBS5TzTcpsuCXZnAX6wRTRBeIbIE6koUuRS894eZOlO6JwdgZ0Q79SF3TVGFbYB 7AoYqUj9sbzjGj58rFWt4rjImdQgnNtqcNLG87Z5JscksDxbTRL9qtMWK0RgZlVqnRow qdWVjVFMuitBsTfmk3TF4hchLL+icMEFsGQg4f861QBs9z6jFzgMLSkr9o8Zzx0bOAB/ X2kHOsLcBl9TWNblRmlhTIBAqxUpJO5Zrt7VdE86XQqnd37Fh1VJ0En6VGxEJ0A9lxIR 6NI+pTo+U6+79FlqtcS7KZ4r8Hi7JftrShYSBY4Wp0sGdKan9a58J8s0npCGNStynXYX LVmQ== 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:dkim-signature; bh=12sWjdPSeBN5jrTLSPyxUQ/kjVDOtHCLJEf+Vehezmc=; b=CXS7UMAMl4TMg0GmQd7s4seRUjcckFS9ooR7oEs2LauSGV2MOITNiwP5l85Y/0mBjO /5uEDGIDyjjjRkTujKO+tSQeP+u3ohJsl+6StRTV4FELV3uoiLuIrf/rl5jL3QsLL8mn 4CTRm04jT+CGaHqfiQ5hlCztl/6QLF/PKlh+zQEa07FEVDHAMs4d9juyGPEbOx6kXp+M 7kVW9baV3QVEMI3DvxwK9UNjnNlG5yU+JNlk92o6oHUYx6NpuEBcFB/MKe+wsmD8DAz+ 0Eeu5IRm00rm5AUsyqSvhxYtA9I8Ssu6JjM89e2Q+fPEknF6Vjr+1mP6505/LqNFrL7p oNgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LZnYzW45; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i129si15298009pfb.221.2019.06.26.10.52.38; Wed, 26 Jun 2019 10:52:54 -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=@kernel.org header.s=default header.b=LZnYzW45; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726524AbfFZRv5 (ORCPT + 99 others); Wed, 26 Jun 2019 13:51:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:45390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbfFZRvz (ORCPT ); Wed, 26 Jun 2019 13:51:55 -0400 Received: from localhost (c-67-164-175-55.hsd1.co.comcast.net [67.164.175.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B046B216FD; Wed, 26 Jun 2019 17:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561571514; bh=Sca4Z3OaKtXYUI/5YyPbiGGtd0DSIOE2gztWP1tFwRg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LZnYzW45b3DGtb+CSPIw9lW7eg1jZASAqQPgdDRKfJ/J8WWC8+6IG/TKWE9KqQEdV 1qvhJ3wa+JEDaYDwsmK2m9ViNBpE+a6nXrW7LmK++vw19GHOw3SzLOY98opv9FCoEH 8lOrIL5bqyp5EksDA0XqzgVxiLhcPXvGcyMNLcNo= Date: Wed, 26 Jun 2019 12:51:53 -0500 From: Bjorn Helgaas To: Xiaowei Bao Cc: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, arnd@arndb.de, gregkh@linuxfoundation.org, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, roy.zang@nxp.com, kstewart@linuxfoundation.org, pombredanne@nexb.com, shawn.lin@rock-chips.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCHv2 2/2] PCI: layerscape: EP and RC drivers are compiled separately Message-ID: <20190626175153.GC103694@google.com> References: <20190626111139.32878-1-xiaowei.bao@nxp.com> <20190626111139.32878-2-xiaowei.bao@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190626111139.32878-2-xiaowei.bao@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If you post another revision for any reason, please change the subject so it's worded as a command and mentions the new config options, e.g., PCI: layerscape: Add CONFIG_PCI_LAYERSCAPE_EP to build EP/RC separately On Wed, Jun 26, 2019 at 07:11:39PM +0800, Xiaowei Bao wrote: > Compile the EP and RC drivers separately with different configuration > options, this looks clearer. > > Signed-off-by: Xiaowei Bao > --- > v2: > - No change. > > drivers/pci/controller/dwc/Kconfig | 20 ++++++++++++++++++-- > drivers/pci/controller/dwc/Makefile | 3 ++- > 2 files changed, 20 insertions(+), 3 deletions(-) > > diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig > index a6ce1ee..a41ccf5 100644 > --- a/drivers/pci/controller/dwc/Kconfig > +++ b/drivers/pci/controller/dwc/Kconfig > @@ -131,13 +131,29 @@ config PCI_KEYSTONE_EP > DesignWare core functions to implement the driver. > > config PCI_LAYERSCAPE > - bool "Freescale Layerscape PCIe controller" > + bool "Freescale Layerscape PCIe controller - Host mode" > depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST) > depends on PCI_MSI_IRQ_DOMAIN > select MFD_SYSCON > select PCIE_DW_HOST > help > - Say Y here if you want PCIe controller support on Layerscape SoCs. > + Say Y here if you want to enable PCIe controller support on Layerscape > + SoCs to work in Host mode. > + This controller can work either as EP or RC. The RCW[HOST_AGT_PEX] > + determines which PCIe controller works in EP mode and which PCIe > + controller works in RC mode. > + > +config PCI_LAYERSCAPE_EP > + bool "Freescale Layerscape PCIe controller - Endpoint mode" > + depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST) > + depends on PCI_ENDPOINT > + select PCIE_DW_EP > + help > + Say Y here if you want to enable PCIe controller support on Layerscape > + SoCs to work in Endpoint mode. > + This controller can work either as EP or RC. The RCW[HOST_AGT_PEX] > + determines which PCIe controller works in EP mode and which PCIe > + controller works in RC mode. > > config PCI_HISI > depends on OF && (ARM64 || COMPILE_TEST) > diff --git a/drivers/pci/controller/dwc/Makefile b/drivers/pci/controller/dwc/Makefile > index b085dfd..824fde7 100644 > --- a/drivers/pci/controller/dwc/Makefile > +++ b/drivers/pci/controller/dwc/Makefile > @@ -8,7 +8,8 @@ obj-$(CONFIG_PCI_EXYNOS) += pci-exynos.o > obj-$(CONFIG_PCI_IMX6) += pci-imx6.o > obj-$(CONFIG_PCIE_SPEAR13XX) += pcie-spear13xx.o > obj-$(CONFIG_PCI_KEYSTONE) += pci-keystone.o > -obj-$(CONFIG_PCI_LAYERSCAPE) += pci-layerscape.o pci-layerscape-ep.o > +obj-$(CONFIG_PCI_LAYERSCAPE) += pci-layerscape.o > +obj-$(CONFIG_PCI_LAYERSCAPE_EP) += pci-layerscape-ep.o > obj-$(CONFIG_PCIE_QCOM) += pcie-qcom.o > obj-$(CONFIG_PCIE_ARMADA_8K) += pcie-armada8k.o > obj-$(CONFIG_PCIE_ARTPEC6) += pcie-artpec6.o > -- > 1.7.1 >