qcacmn: Move PCIE_AWAKE_WHILE_DRIVER_LOAD code to pcie

Move pcie specific code for keeping the target awake
durring driver load.  This code should be in a pci
specific file to avoid the ifdef HIF_PCI.

Change-Id: I117c43d95196a1f2f79b1124d290acf8542ebf10
CRs-Fixed: 986480
Dieser Commit ist enthalten in:
Houston Hoffman
2016-03-14 21:11:37 -07:00
committet von Vishwajith Upendra
Ursprung e02e12d156
Commit f771862053
2 geänderte Dateien mit 10 neuen und 8 gelöschten Zeilen

Datei anzeigen

@@ -1972,14 +1972,6 @@ int hif_config_ce(struct hif_softc *scn)
hif_state->sleep_timer_init = true;
hif_state->fw_indicator_address = FW_INDICATOR_ADDRESS;
#ifdef HIF_PCI
#if CONFIG_ATH_PCIE_MAX_PERF || CONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD
/* Force AWAKE forever/till the driver is loaded */
if (hif_target_sleep_state_adjust(scn, false, true) < 0)
return -EACCES;
#endif
#endif
hif_config_rri_on_ddr(scn);
/* During CE initializtion */

Datei anzeigen

@@ -1262,6 +1262,16 @@ int hif_bus_configure(struct hif_softc *hif_sc)
}
A_TARGET_ACCESS_LIKELY(hif_sc);
if (CONFIG_ATH_PCIE_MAX_PERF ||
CONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD) {
/* Force AWAKE forever/till the driver is loaded */
if (hif_target_sleep_state_adjust(hif_sc, false, true) < 0) {
status = -EACCES;
goto disable_wlan;
}
}
status = hif_config_ce(hif_sc);
if (status)
goto disable_wlan;