diff options
| author | Richard Zhu <[email protected]> | 2024-11-26 07:56:56 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2025-01-16 20:29:29 +0000 |
| commit | f068ffdd034c93f0c768acdc87d4d2d7023c1379 (patch) | |
| tree | 0cafe32ead590138e270c45c33d25d6353e2b8fc /drivers/pci/controller/dwc/pci-imx6.c | |
| parent | PCI: imx6: Fetch dbi2 and iATU base addesses from DT (diff) | |
| download | kernel-f068ffdd034c93f0c768acdc87d4d2d7023c1379.tar.gz kernel-f068ffdd034c93f0c768acdc87d4d2d7023c1379.zip | |
PCI: imx6: Skip controller_id generation logic for i.MX7D
The i.MX7D only has one PCIe controller, so controller_id should always be
0. The previous code is incorrect although yielding the correct result.
Fix by removing "IMX7D" from the switch case branch.
Fixes: 2d8ed461dbc9 ("PCI: imx6: Add support for i.MX8MQ")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Richard Zhu <[email protected]>
Signed-off-by: Krzysztof WilczyĆski <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-imx6.c')
| -rw-r--r-- | drivers/pci/controller/dwc/pci-imx6.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 555f56286789..0e1d60388043 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -1385,7 +1385,6 @@ static int imx_pcie_probe(struct platform_device *pdev) switch (imx_pcie->drvdata->variant) { case IMX8MQ: case IMX8MQ_EP: - case IMX7D: if (dbi_base->start == IMX8MQ_PCIE2_BASE_ADDR) imx_pcie->controller_id = 1; break; |
