Commit 0700b462 authored by Nitesh Gupta's avatar Nitesh Gupta Committed by Gerrit - the friendly Code Review server
Browse files

msm: ep_pcie: unset ltssm_en bit in case of link failure

In cases where the PCIe enumeration fails after enabling LTSSM
in HLOS, we need to set ltssm_en bit properly in order for
subsequent enumeration to go through. This change unsets the
ltssm_en bit in case of link failure.

Change-Id: Ic179f1bbc88523345566c1afa78e5218c872b556
Signed-off-by: default avatarNitesh Gupta <>
parent 521fadd2
......@@ -2003,6 +2003,11 @@ checkbme:
dev->power_on = false;
if (dev->phy_rev >= 3)
ep_pcie_write_mask(dev->parf + PCIE20_PARF_LTSSM, BIT(8), 0);
ep_pcie_write_mask(dev->elbi + PCIE20_ELBI_SYS_CTRL, BIT(0), 0);
if (!ep_pcie_debug_keep_resource)
Supports Markdown
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