From patchwork Tue Mar 21 14:32:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9636675 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 6F13A60216 for ; Tue, 21 Mar 2017 14:33:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 640432840E for ; Tue, 21 Mar 2017 14:33:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 590A02841F; Tue, 21 Mar 2017 14:33:02 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 243BE2840E for ; Tue, 21 Mar 2017 14:33:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932990AbdCUOcs (ORCPT ); Tue, 21 Mar 2017 10:32:48 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:65435 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932968AbdCUOcr (ORCPT ); Tue, 21 Mar 2017 10:32:47 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0LmC4A-1cHpIc1jec-00ZyNS; Tue, 21 Mar 2017 15:32:36 +0100 From: Arnd Bergmann To: Bjorn Helgaas , Kishon Vijay Abraham I , Arnd Bergmann , Jingoo Han Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pci: dwc: hisi needs PCI_HOST_COMMON Date: Tue, 21 Mar 2017 15:32:11 +0100 Message-Id: <20170321143229.3372903-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:Oq6Qdhpuye5xrAeiqswOTickR4QZ7Q2vu2SaxrrR2TxxAfqlcsB 8vOwTkOz7VgFu+i6IjY8wk2P9IBCWEjnI42tOk8iv39Srt7ddizH2Vt4JcrmwKlHtcAEf/t 713FihKsuCBMWK8dpOJNCXYJUBvg4es726EbkzzZ5JUTFdSx4qnTEW/J/cRX8TEEFKm2xcM n+6dZHgSU5HAheB8l1xQA== X-UI-Out-Filterresults: notjunk:1; V01:K0:paZ3tP3t3+c=:eq1Kd9v/p+YB7oDY3Kc21X t1jIoK60pAnnI2nQIPwuYSfQAiQ3qxnRQ8njNjo1ktSFLAgxNluXMLiBVbK3GWPoFm/zu/w9o neqt/0b9b5GHcXJv4dvkH7icZ+ndwWhEWqleccX3RIjB9/USyewFe9K8t5XvHERZae4qG8uYg idSMfoSfwmPeIl+f179kYLI1BDIkmUEEMZQAzuL68e9G6x8+7wiJmK4wi/WwWOde4g2gSAlBV igrUpaDv+3p2fiTIfmSsNYHwABkvBPM4bTVmDkqYDVJ66g/rCXN6vHFIWrnInBrzSPeEs+BWG YqZzOruQSVMWoSfizDoVwmtgfI/RlT8SG9tiDhxC1lc/n2tkzEgNGqlKoRr+/BkCHOGKDNpUM nWimcbUquNiNX8mMxni30Tth0ZBbJIXaR1YyIicIvkvGmRsTprjEfZKr16LcMqRDIa5zHsxjG FxiUO3SMUDTDnc206d1eeYmaTDrmIgMhKOPYfAvx11kqgJ8A3GiUC//TupD6iTgfmivqZ23i9 UONL9WcZMuRv1i5L1Z8pyGrGuezh702QaZNT3Yg7SH6bRnqiTTpUI241nYrB1KPNykgQlkkkO +VNibtUr4DmpxsC+qjTl3G0l5RgaWAZ93P06oOknR6txBof+q0QKZh3OrZ3wURKSl+Yx4sqaP wWcJIeYVD5dh3Pq+ldX9+aIJJTb7EErIJju/0LYS1fAOyG+AlGr/UPgDOKmr9ESp/mus= 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 Without PCI_HOST_COMMON support enabled, we get a link error: drivers/pci/dwc/built-in.o: In function `hisi_pcie_map_bus': pcie-hisi.c:(.text+0x8860): undefined reference to `pci_ecam_map_bus' drivers/pci/dwc/built-in.o: In function `hisi_pcie_almost_ecam_probe': pcie-hisi.c:(.text+0x88b4): undefined reference to `pci_host_common_probe' This adds an explicit 'select', as the other users have. Signed-off-by: Arnd Bergmann Acked-by: Jingoo Han --- drivers/pci/dwc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/dwc/Kconfig b/drivers/pci/dwc/Kconfig index dfb8a69afc28..d2d2ba5b8a68 100644 --- a/drivers/pci/dwc/Kconfig +++ b/drivers/pci/dwc/Kconfig @@ -89,6 +89,7 @@ config PCI_HISI depends on PCI_MSI_IRQ_DOMAIN select PCIEPORTBUS select PCIE_DW_HOST + select PCI_HOST_COMMON help Say Y here if you want PCIe controller support on HiSilicon Hip05 and Hip06 SoCs