Skip to content

Commit 45514f7

Browse files
Richard ZhuLorenzo Pieralisi
authored andcommitted
PCI: imx6: Assert i.MX8MM CLKREQ# even if no device present
The CLKREQ# signal is an open drain, active low signal that is driven low by the remote Endpoint device. But it might not be driven low if no Endpoint device is connected. On i.MX8MM PCIe, phy_init() may fail and system boot may hang if no Endpoint is connected to assert CLKREQ#. Handle this as on i.MX8MQ, where we explicitly assert CLKREQ# so the PHY can be initialized. Link: https://lore.kernel.org/r/1645672013-8949-1-git-send-email-hongxing.zhu@nxp.com Fixes: 178e244 ("PCI: imx: Add the imx8mm pcie support") Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
1 parent deaf7a2 commit 45514f7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,6 @@ static int imx6_pcie_enable_ref_clk(struct imx6_pcie *imx6_pcie)
453453
case IMX7D:
454454
break;
455455
case IMX8MM:
456-
ret = clk_prepare_enable(imx6_pcie->pcie_aux);
457-
if (ret)
458-
dev_err(dev, "unable to enable pcie_aux clock\n");
459-
break;
460456
case IMX8MQ:
461457
ret = clk_prepare_enable(imx6_pcie->pcie_aux);
462458
if (ret) {

0 commit comments

Comments
 (0)