qcacld-3.0: Remove power_gating from upper layers

These are pci specific power management features.  These should
be consolidated instead of littering bus agnostic code.

Change-Id: I366f1d14ab04368d77a144bebaeb038c1469abed
CRs-Fixed: 986480
This commit is contained in:
Houston Hoffman 2016-02-16 14:57:56 -08:00 • committed by Gerrit - the friendly Code Review server
commit c2cd5d472e
6 changed files with 1 additions and 14 deletions

View file

@ -463,12 +463,6 @@ void htt_display(htt_pdev_handle pdev, int indent)
}
#endif
/* Disable ASPM : Disable PCIe low power */
void htt_htc_disable_aspm(struct htt_pdev_t *pdev)
{
htc_disable_aspm(pdev->htc_pdev);
}
#ifdef IPA_OFFLOAD
/**
* htt_ipa_uc_attach() - Allocate UC data path resources

View file

@ -332,9 +332,7 @@ A_STATUS htt_h2t_rx_ring_cfg_msg_ll(struct htt_pdev_t *pdev)
enable_hdr = 1;
enable_ppdu_start = 1;
enable_ppdu_end = 1;
/* Disable ASPM when pkt log is enabled */
qdf_print("Pkt log is enabled\n");
htt_htc_disable_aspm(pdev);
} else {
qdf_print("Pkt log is disabled\n");
enable_ctrl_data = 0;

View file

@ -459,8 +459,6 @@ htt_htc_misc_pkt_list_add(struct htt_pdev_t *pdev, struct htt_htc_pkt *pkt);
void htt_htc_misc_pkt_pool_free(struct htt_pdev_t *pdev);
#endif
void htt_htc_disable_aspm(struct htt_pdev_t *pdev);
int
htt_rx_hash_list_insert(struct htt_pdev_t *pdev, uint32_t paddr,
qdf_nbuf_t netbuf);

View file

@ -386,7 +386,7 @@ static int wlan_hdd_probe(struct device *dev, void *bdev, const hif_bus_id *bid,
if (ret)
goto err_bmi_close;
hif_enable_power_management(hif_ctx);
hif_enable_power_management(hif_ctx, cds_is_packet_log_enabled());
if (reinit) {
cds_set_recovery_in_progress(false);

View file

@ -5784,8 +5784,6 @@ int hdd_wlan_startup(struct device *dev, void *hif_sc)
}
}
hif_enable_power_gating(hif_sc);
memdump_init();
goto success;

View file

@ -1601,7 +1601,6 @@ QDF_STATUS hdd_wlan_re_init(void *hif_sc)
pHddCtx->target_hw_name);
#endif
hif_enable_power_gating(hif_sc);
hddLog(LOGE,
"%s: WLAN host driver reinitiation completed!", __func__);
goto success;