[PATCH v2 4/4] PCI: mediatek-gen3: Add Airoha EN7581 support
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Thu Jun 27 02:40:06 PDT 2024
Il 27/06/24 10:12, Lorenzo Bianconi ha scritto:
> Introduce support for Airoha EN7581 PCIe controller to mediatek-gen3
> PCIe controller driver.
>
> Tested-by: Zhengping Zhang <zhengping.zhang at airoha.com>
> Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
> ---
> drivers/pci/controller/Kconfig | 2 +-
> drivers/pci/controller/pcie-mediatek-gen3.c | 96 ++++++++++++++++++++-
> 2 files changed, 96 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig
> index e534c02ee34f..3bd6c9430010 100644
> --- a/drivers/pci/controller/Kconfig
> +++ b/drivers/pci/controller/Kconfig
> @@ -196,7 +196,7 @@ config PCIE_MEDIATEK
>
> config PCIE_MEDIATEK_GEN3
> tristate "MediaTek Gen3 PCIe controller"
> - depends on ARCH_MEDIATEK || COMPILE_TEST
> + depends on ARCH_AIROHA || ARCH_MEDIATEK || COMPILE_TEST
> depends on PCI_MSI
> help
> Adds support for PCIe Gen3 MAC controller for MediaTek SoCs.
> diff --git a/drivers/pci/controller/pcie-mediatek-gen3.c b/drivers/pci/controller/pcie-mediatek-gen3.c
> index 438a5222d986..af567b4355fa 100644
> --- a/drivers/pci/controller/pcie-mediatek-gen3.c
> +++ b/drivers/pci/controller/pcie-mediatek-gen3.c
..snip..
> +
> static const struct of_device_id mtk_pcie_of_match[] = {
> { .compatible = "mediatek,mt8192-pcie", .data = &mtk_pcie_soc_mt8192 },
> + { .compatible = "airoha,en7581-pcie", .data = &mtk_pcie_soc_en7581 },
My bad, in the last review I didn't notice that the ordering here is not good.
A ... iroha comes before
M ... ediatek :-)
Please put the airoha entry before the mediatek one, after which:
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
> {},
> };
> MODULE_DEVICE_TABLE(of, mtk_pcie_of_match);
More information about the linux-arm-kernel
mailing list