mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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:
parent
39d27ed230
commit
bde1772622
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue