From patchwork Tue Jun 19 14:17:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 10474629 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 782D760383 for ; Tue, 19 Jun 2018 14:17:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A12B2860B for ; Tue, 19 Jun 2018 14:17:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EF9E28C13; Tue, 19 Jun 2018 14:17:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F18792860B for ; Tue, 19 Jun 2018 14:17:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937579AbeFSORX (ORCPT ); Tue, 19 Jun 2018 10:17:23 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:51002 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937442AbeFSORV (ORCPT ); Tue, 19 Jun 2018 10:17:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tacba2O4iAa42THU18LYFHFoVgMVzQEsH3RA5UQMZHY=; b=Zve4yiX3XtuNqv12i3nKxwkMP pNA/DAG1BuDaNSK7ebJXa19+Uw5JO13Xz/oiVXp5N0LvseX+uTJYAE0iTrcnkwr+oUeo3jJ43fuWN N+I6cNABFTnWwWS96tJIdbMzbNY1plq2+mEP0heTES1kwN8DxXZsdOOZp+hBAM629C6yjdF+rkEpM MKUTu57a6DrdFEfjMfSDV21CPOHEQ/8Ny+/OINTDm9Nsd0HuLpaqs9pF4HnmRPJQoYr0m2hqOUaNF RZlOEewzMrJXIb7izKm+de7oSGpCuOpiWLjEkTrP7/0qHhwXcQu0EIOlBYV0mZkR5xihryzQZZGBL V26VODLmw==; Received: from 089144192009.atnat0001.highway.a1.net ([89.144.192.9] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVHRc-0001Sk-Va; Tue, 19 Jun 2018 14:17:17 +0000 From: Christoph Hellwig To: Lorenzo Pieralisi , Bjorn Helgaas Cc: Palmer Dabbelt , "Wesley W . Terpstra" , linux-pci@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 3/3] PCI/xilinx: Depend on OF instead of the ARCH Date: Tue, 19 Jun 2018 16:17:00 +0200 Message-Id: <20180619141700.7842-4-hch@lst.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619141700.7842-1-hch@lst.de> References: <20180619141700.7842-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Palmer Dabbelt There isn't a hard dependency of the Xilinx AXI-PCIe host bridge on any architecture. For example: at SiFive we map RISC-V cores to Xilinx FPGAs and connect the Xilinx IP via a TileLink adapter, so the RISC-V Linux port will need to be able to enable PCIE_XILINX in order to have PCIe support. This patch decouples the PCIE_XILINX support from ARCH. Instead it just depends on OF, which I believe is the only true dependency. Signed-off-by: Palmer Dabbelt [hch: replaced the now removed OF_PCI dependency with just OF] Signed-off-by: Christoph Hellwig --- drivers/pci/controller/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig index 18fa09b3ac8f..1fc3d4eb373d 100644 --- a/drivers/pci/controller/Kconfig +++ b/drivers/pci/controller/Kconfig @@ -103,7 +103,7 @@ config PCI_HOST_GENERIC config PCIE_XILINX bool "Xilinx AXI PCIe host bridge support" - depends on ARCH_ZYNQ || MICROBLAZE || (MIPS && PCI_DRIVERS_GENERIC) || COMPILE_TEST + depends on OF || COMPILE_TEST help Say 'Y' here if you want kernel to support the Xilinx AXI PCIe Host Bridge driver.