summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSundar Subramaniyan <subrams@qti.qualcomm.com>2013-11-21 04:12:24 -0800
committerPrakash Dhavali <pdhavali@qca.qualcomm.com>2013-12-03 14:39:37 -0800
commitc1e1811a073fd16be1f52281eb7efef83bcdf78c (patch)
tree874dca7f556ff6c1960e7ec538573c7ba927640d
parentdc2895dfedd705a3275e684a2965756009676544 (diff)
qcacld-2.0: Re-enable ASPM after firmware and otp are downloaded to target
ASPM is disabled till firmware and otp are downloaded but is not enabled after that. This prevents the target to dynamically manage power when the link becomes less active over time. Re-enable ASPM after the firmware/OTP are downloaded and once the target is ready. Change-Id: Ie3f1a1a655053ce54e21d338715b84e13eda83f6 CRs-Fixed: 582045
-rw-r--r--CORE/SERVICES/HIF/PCIe/if_pci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/CORE/SERVICES/HIF/PCIe/if_pci.c b/CORE/SERVICES/HIF/PCIe/if_pci.c
index d395e29c37db..ba597c9e2aa0 100644
--- a/CORE/SERVICES/HIF/PCIe/if_pci.c
+++ b/CORE/SERVICES/HIF/PCIe/if_pci.c
@@ -557,6 +557,9 @@ again:
goto err_config;
}
+ /* Re-enable ASPM after firmware/OTP download is complete */
+ pci_write_config_dword(pdev, 0x80, lcr_val);
+
#ifndef REMOVE_PKT_LOG
if (vos_get_conparam() != VOS_FTM_MODE) {
/*