airoha: default to kernel 6.1
[openwrt/staging/stintel.git] / target / linux / airoha / patches-5.15 / 0006-PCI-mediatek-Allow-building-for-ARCH_AIROHA.patch
1 From b3b76fc86f0fb4d98918f48c784138bfa950dff6 Mon Sep 17 00:00:00 2001
2 From: Felix Fietkau <nbd@nbd.name>
3 Date: Wed, 15 Jun 2022 14:53:34 +0200
4 Subject: [PATCH] PCI: mediatek: Allow building for ARCH_AIROHA
5
6 Allow selecting the pcie-mediatek driver if ARCH_AIROHA is set, because the
7 Airoha EN7523 SoC uses the same controller as MT7622.
8
9 The driver itself is not modified. The PCIe controller DT node should use
10 mediatek,mt7622-pcie after airoha,en7523-pcie.
11
12 Link: https://lore.kernel.org/r/20220615125335.96089-2-nbd@nbd.name
13 Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
15 Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
16 Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
17 ---
18 drivers/pci/controller/Kconfig | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/pci/controller/Kconfig
22 +++ b/drivers/pci/controller/Kconfig
23 @@ -233,7 +233,7 @@ config PCIE_ROCKCHIP_EP
24
25 config PCIE_MEDIATEK
26 tristate "MediaTek PCIe controller"
27 - depends on ARCH_MEDIATEK || COMPILE_TEST
28 + depends on ARCH_AIROHA || ARCH_MEDIATEK || COMPILE_TEST
29 depends on OF
30 depends on PCI_MSI_IRQ_DOMAIN
31 help