]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI: imx6: Add IMX8MQ_EP third 64-bit BAR in epc_features
authorRichard Zhu <hongxing.zhu@nxp.com>
Tue, 8 Jul 2025 09:10:02 +0000 (17:10 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 15 Jul 2025 17:03:45 +0000 (12:03 -0500)
IMX8MQ_EP has three 64-bit BAR0/2/4 capable and programmable BARs. For
IMX8MQ_EP, use imx8q_pcie_epc_features (64-bit BARs 0, 2, 4) instead
of imx8m_pcie_epc_features (64-bit BARs 0, 2).

Fixes: 75c2f26da03f ("PCI: imx6: Add i.MX PCIe EP mode support")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
[bhelgaas: add details in subject]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20250708091003.2582846-2-hongxing.zhu@nxp.com
drivers/pci/controller/dwc/pci-imx6.c

index 5a38cfaf989b1c9606660f2e0bcd10d88fa2d6b1..7d15bcb7c107bc47420555eb455bad75c987286e 100644 (file)
@@ -1912,7 +1912,7 @@ static const struct imx_pcie_drvdata drvdata[] = {
                .mode_mask[0] = IMX6Q_GPR12_DEVICE_TYPE,
                .mode_off[1] = IOMUXC_GPR12,
                .mode_mask[1] = IMX8MQ_GPR12_PCIE2_CTRL_DEVICE_TYPE,
-               .epc_features = &imx8m_pcie_epc_features,
+               .epc_features = &imx8q_pcie_epc_features,
                .init_phy = imx8mq_pcie_init_phy,
                .enable_ref_clk = imx8mm_pcie_enable_ref_clk,
        },