qcacmn: Enable ASPM for FTM mode

Modify hif_pci_enable_power_management() API to enable pci ASPM for
FTM mode.

CRs-Fixed: 2491213
Change-Id: Ia421ee2af9ae270f5138ac5b8ff52680fbfe9679
This commit is contained in:
Mahesh Kumar Kalikot Veetil 2019-07-16 16:32:20 -07:00 • committed by nshrivas
commit bde1772622

View file

@ -1334,12 +1334,20 @@ void hif_pci_enable_power_management(struct hif_softc *hif_sc,
bool is_packet_log_enabled)
{
struct hif_pci_softc *pci_ctx = HIF_GET_PCI_SOFTC(hif_sc);
uint32_t mode;
if (!pci_ctx) {
HIF_ERROR("%s, hif_ctx null", __func__);
return;
}
mode = hif_get_conparam(hif_sc);
if (mode == QDF_GLOBAL_FTM_MODE) {
HIF_INFO("%s: Enable power gating for FTM mode", __func__);
hif_enable_power_gating(pci_ctx);
return;
}
hif_pm_runtime_start(pci_ctx);
if (!is_packet_log_enabled)