0006-PCI-mediatek-Allow-building-for-ARCH_AIROHA.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From b3b76fc86f0fb4d98918f48c784138bfa950dff6 Mon Sep 17 00:00:00 2001
  2. From: Felix Fietkau <[email protected]>
  3. Date: Wed, 15 Jun 2022 14:53:34 +0200
  4. Subject: [PATCH] PCI: mediatek: Allow building for ARCH_AIROHA
  5. Allow selecting the pcie-mediatek driver if ARCH_AIROHA is set, because the
  6. Airoha EN7523 SoC uses the same controller as MT7622.
  7. The driver itself is not modified. The PCIe controller DT node should use
  8. mediatek,mt7622-pcie after airoha,en7523-pcie.
  9. Link: https://lore.kernel.org/r/[email protected]
  10. Signed-off-by: Felix Fietkau <[email protected]>
  11. Signed-off-by: Bjorn Helgaas <[email protected]>
  12. Acked-by: Lorenzo Pieralisi <[email protected]>
  13. Signed-off-by: Daniel Danzberger <[email protected]>
  14. ---
  15. drivers/pci/controller/Kconfig | 2 +-
  16. 1 file changed, 1 insertion(+), 1 deletion(-)
  17. --- a/drivers/pci/controller/Kconfig
  18. +++ b/drivers/pci/controller/Kconfig
  19. @@ -233,7 +233,7 @@ config PCIE_ROCKCHIP_EP
  20. config PCIE_MEDIATEK
  21. tristate "MediaTek PCIe controller"
  22. - depends on ARCH_MEDIATEK || COMPILE_TEST
  23. + depends on ARCH_AIROHA || ARCH_MEDIATEK || COMPILE_TEST
  24. depends on OF
  25. depends on PCI_MSI_IRQ_DOMAIN
  26. help