Skip to content

Commit f068ffd

Browse files
Richard Zhubjorn-helgaas
authored andcommitted
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: 2d8ed46 ("PCI: imx6: Add support for i.MX8MQ") Link: https://lore.kernel.org/r/20241126075702.4099164-5-hongxing.zhu@nxp.com Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Frank Li <Frank.Li@nxp.com>
1 parent 7ab93e6 commit f068ffd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/pci/controller/dwc/pci-imx6.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,6 @@ static int imx_pcie_probe(struct platform_device *pdev)
13851385
switch (imx_pcie->drvdata->variant) {
13861386
case IMX8MQ:
13871387
case IMX8MQ_EP:
1388-
case IMX7D:
13891388
if (dbi_base->start == IMX8MQ_PCIE2_BASE_ADDR)
13901389
imx_pcie->controller_id = 1;
13911390
break;

0 commit comments

Comments
 (0)