Commit aa6bafbb authored by Richard Zhu's avatar Richard Zhu
Browse files

MLK-16889 PCI: imx: disable the ltssm when link is down



Disable the LTSSM when link is down.
Signed-off-by: default avatarRichard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: default avatarYe Li <ye.li@nxp.com>
parent 8bf2f78b
......@@ -145,6 +145,7 @@ int pcie_ctrla_init_rc(int lane)
printf("[%s] LNK UP %x\r\n", __func__, val);
else {
printf("[%s] LNK DOWN %x\r\n", __func__, val);
clrbits_le32(HW_PCIEX2_CTRL2_ADDR, HW_PCIEX2_CTRL2_APP_LTSSM_ENABLE);
return -ENODEV;
}
......@@ -243,6 +244,7 @@ int pcie_ctrlb_sata_phy_init_rc(void)
printf("[%s] LNK UP %x\r\n", __func__, val);
} else {
printf("[%s] LNK DOWN %x\r\n", __func__, val);
clrbits_le32(HW_PCIEX1_CTRL2_ADDR, HW_PCIEX1_CTRL2_APP_LTSSM_ENABLE);
return -ENODEV;
}
clrbits_le32(PORT1_LINK_CTRL, PORT_LINK_CTRL_LNK_FAST_LNK);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment