Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3589764ybl; Mon, 12 Aug 2019 03:06:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyg9qWWUMZMmk5vGzfsX4C0MypvNUwyILLyoVa+wES4MxDQwqTbYK7lmWUk+VxZSxcWm2Og X-Received: by 2002:aa7:9713:: with SMTP id a19mr34837480pfg.64.1565604418758; Mon, 12 Aug 2019 03:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565604418; cv=none; d=google.com; s=arc-20160816; b=jSXZ3P4z8SinD3H5ucd/dUfavYLTNnVf2DmSQFVVgVc+7hoa7RBYeJ3vSxDOtgIi43 35hzRogwAF+cXQt2Csv6CV0Ct5sgOcKGHu29aUiGYs98qzZqopak0e8eql+fvIh2VJhv GlMugsnvil2WcgsFVboaGASIrWdL2nOGRNDudOVcGer5LPNVtj0h/AJmkNnP2vTMBC35 /mwTtetHDy+cXGRHsE3sbuXXL2nl4ymZvMp8vnuIDZcmO0Qnv4ofQ4e/AwcT10Shj1Et SANn2xJy/ZyDI4kqdS35iLmJ2hOEUiku6+W6wlne8dJ7YweIwnSHiyt+BrefPcbOuvjv tSiA== 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=cK/w/pgzyduBfZOzPgS08jxePmYe4qfcoejlgLc9wGo=; b=Kp+F6iualyEWt+c0cvOj850xaRQQtcNN+bV7DaVyjI3GZq2/FN/A4vc+K44VTcdFuH L2Wb7ILQ82A58zuFXPCeJ67g8/p5xLFroS4toz7yaGUqxOL1ytm1ydM+rZq98hpgRQiI 2FWxJce2QMWuxdl+5F2PlUyoWB1nkeTcXGGplmwO5Iomi/CeXBwCO+EW6a0S7Z8g/7Eg SfqDfE1Gvu/+HLgpL/U8no1UypqTg7trNOC2kzMYfD4y9hCvUlyz0ncLnlaMejBtcm9I Mhu2quwMWNNrX1d2sHxw7Ou96mzLS4m19xunXangiYotrmSk6wZN/KDZOVPonX+ZyW9S /PFQ== 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 t15si63193853pgv.546.2019.08.12.03.06.43; Mon, 12 Aug 2019 03:06:58 -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 S1727633AbfHLKGJ (ORCPT + 99 others); Mon, 12 Aug 2019 06:06:09 -0400 Received: from foss.arm.com ([217.140.110.172]:47322 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727409AbfHLKGJ (ORCPT ); Mon, 12 Aug 2019 06:06:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 13F0115A2; Mon, 12 Aug 2019 03:06:08 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (unknown [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 98CE53F718; Mon, 12 Aug 2019 03:06:05 -0700 (PDT) Date: Mon, 12 Aug 2019 11:06:00 +0100 From: Lorenzo Pieralisi To: Xiaowei Bao Cc: bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, kishon@ti.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: [PATCHv3 2/2] PCI: layerscape: Add CONFIG_PCI_LAYERSCAPE_EP to build EP/RC separately Message-ID: <20190812100600.GA20861@e121166-lin.cambridge.arm.com> References: <20190628013826.4705-1-xiaowei.bao@nxp.com> <20190628013826.4705-2-xiaowei.bao@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190628013826.4705-2-xiaowei.bao@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 28, 2019 at 09:38:26AM +0800, Xiaowei Bao wrote: > Add CONFIG_PCI_LAYERSCAPE_EP to build EP/RC separately. > > Signed-off-by: Xiaowei Bao > --- > v2: > - No change. > v3: > - modify the commit message. > > 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] What's "The RCW" ? This entry should explain why a kernel configuration should enable it. Lorenzo > + 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 >