From patchwork Fri May 18 22:31:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 10412413 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 C1563602C2 for ; Fri, 18 May 2018 22:31:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A55EC28AFB for ; Fri, 18 May 2018 22:31:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9963F28AFF; Fri, 18 May 2018 22:31:12 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, 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 263AF28AFB for ; Fri, 18 May 2018 22:31:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbeERWbK (ORCPT ); Fri, 18 May 2018 18:31:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:51246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbeERWbJ (ORCPT ); Fri, 18 May 2018 18:31:09 -0400 Received: from localhost (unknown [69.71.5.252]) (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 0EAF620652; Fri, 18 May 2018 22:31:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526682669; bh=T4JWV7LwoQIEdqoMSZn1dHSZzCd/p/VGj5/8yIsxBHg=; h=Subject:From:To:Cc:Date:From; b=vf/+JbgUZvC/NU58tfVgoePY7NzeNKtOl5iK8QGXMdOHM26OJShNFX4PORHphuoA5 yUrWNhIwLOQYQQZcWas1XB/bEJTRU+XAXIh6xtbQVXo3HizjKwKDPkNw/KlHdkr7Zf 4Get9yMFZLL7ZI/w2fH+8q4jP8johMEXoVZvd0Qg= Subject: [PATCH] PCI: Remove host driver Kconfig selection of CONFIG_PCIEPORTBUS From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: Lorenzo Pieralisi , Jingoo Han , Richard Zhu , Lucas Stach , Pratyush Anand , Murali Karicheri , Zhou Wang , Stanimir Varbanov , Thomas Petazzoni , Niklas Cassel , Jesper Nilsson , Xiaowei Song , Binghui Wang , Jianguo Sun , Shawn Guo , Tanmay Inamdar , Ryder Lee , linux-kernel@vger.kernel.org Date: Fri, 18 May 2018 17:31:07 -0500 Message-ID: <152668266782.118010.15462515170612275250.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.18 MIME-Version: 1.0 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: Bjorn Helgaas Host bridge drivers do not use the portdrv interfaces (struct pcie_device, struct pcie_port_service_driver, pcie_port_service_register(), etc), and they should not select CONFIG_PCIEPORTBUS. If users need the portdrv services, they can select CONFIG_PCIEPORTBUS just like all other PCI users. Signed-off-by: Bjorn Helgaas --- drivers/pci/dwc/Kconfig | 10 ---------- drivers/pci/host/Kconfig | 2 -- 2 files changed, 12 deletions(-) diff --git a/drivers/pci/dwc/Kconfig b/drivers/pci/dwc/Kconfig index 2f3f5c50aa48..678390a77ba1 100644 --- a/drivers/pci/dwc/Kconfig +++ b/drivers/pci/dwc/Kconfig @@ -68,7 +68,6 @@ config PCI_EXYNOS depends on PCI depends on SOC_EXYNOS5440 depends on PCI_MSI_IRQ_DOMAIN - select PCIEPORTBUS select PCIE_DW_HOST config PCI_IMX6 @@ -76,7 +75,6 @@ config PCI_IMX6 depends on PCI depends on SOC_IMX6Q depends on PCI_MSI_IRQ_DOMAIN - select PCIEPORTBUS select PCIE_DW_HOST config PCIE_SPEAR13XX @@ -84,7 +82,6 @@ config PCIE_SPEAR13XX depends on PCI depends on ARCH_SPEAR13XX depends on PCI_MSI_IRQ_DOMAIN - select PCIEPORTBUS select PCIE_DW_HOST help Say Y here if you want PCIe support on SPEAr13XX SoCs. @@ -94,7 +91,6 @@ config PCI_KEYSTONE depends on PCI depends on ARCH_KEYSTONE depends on PCI_MSI_IRQ_DOMAIN - select PCIEPORTBUS select PCIE_DW_HOST help Say Y here if you want to enable PCI controller support on Keystone @@ -117,7 +113,6 @@ config PCI_HISI bool "HiSilicon Hip05 and Hip06 SoCs PCIe controllers" depends on PCI depends on PCI_MSI_IRQ_DOMAIN - select PCIEPORTBUS select PCIE_DW_HOST select PCI_HOST_COMMON help @@ -129,7 +124,6 @@ config PCIE_QCOM depends on PCI depends on ARCH_QCOM && OF depends on PCI_MSI_IRQ_DOMAIN - select PCIEPORTBUS select PCIE_DW_HOST help Say Y here to enable PCIe controller support on Qualcomm SoCs. The @@ -141,7 +135,6 @@ config PCIE_ARMADA_8K depends on PCI depends on ARCH_MVEBU depends on PCI_MSI_IRQ_DOMAIN - select PCIEPORTBUS select PCIE_DW_HOST help Say Y here if you want to enable PCIe controller support on @@ -156,7 +149,6 @@ config PCIE_ARTPEC6_HOST bool "Axis ARTPEC-6 PCIe controller Host Mode" depends on MACH_ARTPEC6 depends on PCI && PCI_MSI_IRQ_DOMAIN - select PCIEPORTBUS select PCIE_DW_HOST select PCIE_ARTPEC6 help @@ -178,7 +170,6 @@ config PCIE_KIRIN bool "HiSilicon Kirin series SoCs PCIe controllers" depends on PCI_MSI_IRQ_DOMAIN depends on PCI - select PCIEPORTBUS select PCIE_DW_HOST help Say Y here if you want PCIe controller support @@ -189,7 +180,6 @@ config PCIE_HISI_STB depends on ARCH_HISI depends on PCI depends on PCI_MSI_IRQ_DOMAIN - select PCIEPORTBUS select PCIE_DW_HOST help Say Y here if you want PCIe controller support on HiSilicon STB SoCs diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig index 0d0177ce436c..90f0cc9dfd95 100644 --- a/drivers/pci/host/Kconfig +++ b/drivers/pci/host/Kconfig @@ -83,7 +83,6 @@ config PCI_XGENE bool "X-Gene PCIe controller" depends on ARM64 depends on OF || (ACPI && PCI_QUIRKS) - select PCIEPORTBUS help Say Y here if you want internal PCI support on APM X-Gene SoC. There are 5 internal PCIe ports available. Each port is GEN3 capable @@ -194,7 +193,6 @@ config PCIE_MEDIATEK depends on (ARM || ARM64) && (ARCH_MEDIATEK || COMPILE_TEST) depends on OF depends on PCI - select PCIEPORTBUS help Say Y here if you want to enable PCIe controller support on MediaTek SoCs.