From patchwork Thu Jan 18 13:15:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10173201 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 E5356603B5 for ; Thu, 18 Jan 2018 13:16:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7044204BA for ; Thu, 18 Jan 2018 13:16:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB5E3205E9; Thu, 18 Jan 2018 13:16:23 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 464AB204BA for ; Thu, 18 Jan 2018 13:16:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756151AbeARNQW (ORCPT ); Thu, 18 Jan 2018 08:16:22 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:60103 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755715AbeARNQV (ORCPT ); Thu, 18 Jan 2018 08:16:21 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0MUjkW-1eJXGr3bX2-00Y7bs; Thu, 18 Jan 2018 14:16:14 +0100 From: Arnd Bergmann To: Lorenzo Pieralisi , Bjorn Helgaas Cc: Arnd Bergmann , Kishon Vijay Abraham I , Jingoo Han , Niklas Cassel , Peter Robinson , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: dwc: dra7xx: add back CONFIG_PCI dependency for endpoint Date: Thu, 18 Jan 2018 14:15:54 +0100 Message-Id: <20180118131612.871559-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:vKijkjhO10LvwMNTwDDKOUTz9eC7zRO2bmY1UyhwXRppisYKc6E DP/cseULXbFsmJPkpSEzlL10y4+1dpchfURAw2UDEOAAnHd2iCAhXK+JWGoXsLf9pkMgeip VgAIyyaERH7jUuUjsPpb1czSia1oSEMRDQPUWqAr1x+ycNLDbSNDJQVpZMBaWf90q6FzeKV tBNMIA7UTKcrvqBUoPTdA== X-UI-Out-Filterresults: notjunk:1; V01:K0:I3m17UKc/L8=:IYQilnUodq8r1jI3LkU8ph +/QEftg9PVEiU7TnP0tLgDQiQUmQn7Oj16FCEzexV3rkMo/mwluG31bk8r8t8V1r89HDKCEai TPhPsx49+/9H/AkDxrm9rTxz+x1DSpIBkLEWrPMBXDoSZhJGsrWB3le3PO3ueCqVT403/+qzh vl7ivHnmiD5GIQ8Ze1Ns7v9BBD+aZ+J/ZmcLqkg8qBup37rlk2jbbUVZyFN9KnzTtWRjWRnXF GLwSoXLt57VExKEo/cyWH3wOQm2X4m5ECc1XDvYI8JVgBECLHfWfCDxbP3aPTG61u/DKtnzyG QwLdbvf0IstJAz1J8kj9LPn0zpO5AU5uMMtqTHPUd0FbPE+7VxeXn1MC7FvMBB5FAHVG1Gou6 9E56L4aZkevM6Jpwxi1IR/zvUFCs6p5iOpDEnVfgJh+6PBhVc9zIH9lHmCTGZmMmLKAbj01PT us1AJMS3sN+jETm0I33tnbT/V5lZX90OEDXNFgGYLP7vI8qfqpS8xQIDQd2BVq0p1fYm7YCVL vG0uNZqdtv7brEg8VEw/20qTFjepuKPDs1Qq23n0CuQu2CzPrZPeTR6oo92cCUIP/bDux+GRX 4AXBiaXuQoBZSr1rr46dPDCEZUvLB7d7yZjeMdzWLoJdtiQr/6z2HZDqWIHSkNg3Fittrfmrk KLVBIWKPCy3dYrmO2TvxjzSpCfdoHoNv1slbDuKQu+UioJnMyGbrJIGHzK+xRLiZcFY9Rr0Fx Mvvm8Yhc3kg4qbmyBOnbVqWE3tlcteL1ckPY7g== 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 It was a nice idea to split out the PCI host and endpoint mode configuration into separate options. Unfortunately it doesn't build: drivers/pci/dwc/pci-dra7xx.c:229:11: error: 'pci_irqd_intx_xlate' undeclared here (not in a function) This is certainly a fixable problem, but since it's clear that this configuration was never tested, let's maybe revert back to the dependency for now, until it can be done in a way that works better. Fixes: b052835c6385 ("PCI: dwc: dra7xx: Refactor Kconfig and Makefile handling for host/ep mode") Signed-off-by: Arnd Bergmann Acked-by: Arnd Bergmann Acked-by: Lorenzo Pieralisi --- drivers/pci/dwc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/dwc/Kconfig b/drivers/pci/dwc/Kconfig index 0fb96c7754de..540419527a92 100644 --- a/drivers/pci/dwc/Kconfig +++ b/drivers/pci/dwc/Kconfig @@ -36,7 +36,7 @@ config PCI_DRA7XX_HOST config PCI_DRA7XX_EP bool "TI DRA7xx PCIe controller Endpoint Mode" depends on SOC_DRA7XX || COMPILE_TEST - depends on PCI_ENDPOINT + depends on PCI && PCI_ENDPOINT depends on OF && HAS_IOMEM && TI_PIPE3 select PCIE_DW_EP select PCI_DRA7XX