[PATCH v1 4/4] PCI: imx6: Add quirks to fix i.MX7D PCIe hang in suspend

Richard Zhu hongxing.zhu at nxp.com
Mon Apr 7 23:52:21 PDT 2025


When no endpoint is connected on i.MX7D PCIe, chip would be freeze when do
the dummy write in dw_pcie_pme_turn_off() to issue a PME_Turn_Off Msg TLP.

And, i.MX7D has the hang problem in the L2 state poll after PME_Turn_Off
is sent out when one endpoint device is connected.

Add quirk flags to issue the PME_Turn_Off only when link is up and don't
do the L2 state poll to avoid problems on i.MX7D platform.

Signed-off-by: Richard Zhu <hongxing.zhu at nxp.com>
---
 drivers/pci/controller/dwc/pci-imx6.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c
index aade80010cbe..779b6c7a501d 100644
--- a/drivers/pci/controller/dwc/pci-imx6.c
+++ b/drivers/pci/controller/dwc/pci-imx6.c
@@ -1706,6 +1706,7 @@ static const struct imx_pcie_drvdata drvdata[] = {
 		.mode_mask[0] = IMX6Q_GPR12_DEVICE_TYPE,
 		.enable_ref_clk = imx7d_pcie_enable_ref_clk,
 		.core_reset = imx7d_pcie_core_reset,
+		.quirk = QUIRK_NOLINK_NOPME | QUIRK_NOL2POLL_IN_PM,
 	},
 	[IMX8MQ] = {
 		.variant = IMX8MQ,
-- 
2.37.1




More information about the linux-arm-kernel mailing list