From c1e1811a073fd16be1f52281eb7efef83bcdf78c Mon Sep 17 00:00:00 2001 From: Sundar Subramaniyan Date: Thu, 21 Nov 2013 04:12:24 -0800 Subject: 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 --- CORE/SERVICES/HIF/PCIe/if_pci.c | 3 +++ 1 file changed, 3 insertions(+) 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) { /* -- cgit v1.2.3