diff mbox series

PCI: dw-rockchip: Depend on PCI_ENDPOINT if building endpoint mode support

Message ID 20240626191325.4074794-2-cassel@kernel.org (mailing list archive)
State Accepted
Delegated to: Krzysztof Wilczyński
Headers show
Series PCI: dw-rockchip: Depend on PCI_ENDPOINT if building endpoint mode support | expand

Commit Message

Niklas Cassel June 26, 2024, 7:13 p.m. UTC
All DWC glue drivers that "select PCIE_DW_EP" also has a
"depends on PCI_ENDPOINT", except PCIE_ROCKCHIP_DW_EP.

Fix PCIE_ROCKCHIP_DW_EP so that it depends on PCI_ENDPOINT.

Fixes: 9b2ba393b3a6 ("PCI: dw-rockchip: Add endpoint mode support")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202406270250.k2esVVnL-lkp@intel.com/
Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Krzysztof Wilczyński June 27, 2024, 11:35 p.m. UTC | #1
Hello,

> All DWC glue drivers that "select PCIE_DW_EP" also has a
> "depends on PCI_ENDPOINT", except PCIE_ROCKCHIP_DW_EP.
> 
> Fix PCIE_ROCKCHIP_DW_EP so that it depends on PCI_ENDPOINT.

Applied to controller/rockchip, thank you!

[1/1] PCI: dw-rockchip: Depend on PCI_ENDPOINT if building endpoint mode support
      https://git.kernel.org/pci/pci/c/d7a8b355112d

	Krzysztof
diff mbox series

Patch

diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
index 9c4fb8ba7573..4c38181acffa 100644
--- a/drivers/pci/controller/dwc/Kconfig
+++ b/drivers/pci/controller/dwc/Kconfig
@@ -329,6 +329,7 @@  config PCIE_ROCKCHIP_DW_EP
 	bool "Rockchip DesignWare PCIe controller (endpoint mode)"
 	depends on ARCH_ROCKCHIP || COMPILE_TEST
 	depends on OF
+	depends on PCI_ENDPOINT
 	select PCIE_DW_EP
 	select PCIE_ROCKCHIP_DW
 	help