085-PCI-iproc-Hide-CONFIG_PCIE_IPROC.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From c1b98e41b356a1807d7083d958790da2027c0d9d Mon Sep 17 00:00:00 2001
  2. From: Arnd Bergmann <arnd@arndb.de>
  3. Date: Tue, 24 Nov 2015 15:28:48 -0600
  4. Subject: [PATCH] PCI: iproc: Hide CONFIG_PCIE_IPROC
  5. PCIE_IPROC_BCMA does not require CONFIG_OF in Kconfig, but
  6. CONFIG_PCIE_IPROC does, so we can get a warning when building for an ARM
  7. platform without DT support:
  8. warning: (PCIE_IPROC_PLATFORM && PCIE_IPROC_BCMA) selects PCIE_IPROC which has unmet direct dependencies (PCI && OF && (ARM || ARM64))
  9. It turns out that CONFIG_PCIE_IPROC never needs to be enabled by a user
  10. anyway, we can simply rely on it being selected implictly through either
  11. PCIE_IPROC_PLATFORM or PCIE_IPROC_BCMA.
  12. Fixes: 4785ffbdc9b5 ("PCI: iproc: Add BCMA PCIe driver")
  13. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  14. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  15. Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
  16. ---
  17. drivers/pci/host/Kconfig | 8 +++-----
  18. 1 file changed, 3 insertions(+), 5 deletions(-)
  19. --- a/drivers/pci/host/Kconfig
  20. +++ b/drivers/pci/host/Kconfig
  21. @@ -119,13 +119,11 @@ config PCI_VERSATILE
  22. depends on ARCH_VERSATILE
  23. config PCIE_IPROC
  24. - tristate "Broadcom iProc PCIe controller"
  25. - depends on OF && (ARM || ARM64)
  26. - default n
  27. + tristate
  28. help
  29. This enables the iProc PCIe core controller support for Broadcom's
  30. - iProc family of SoCs. An appropriate bus interface driver also needs
  31. - to be enabled
  32. + iProc family of SoCs. An appropriate bus interface driver needs
  33. + to be enabled to select this.
  34. config PCIE_IPROC_PLATFORM
  35. tristate "Broadcom iProc PCIe platform bus driver"