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:

committet von
Vishwajith Upendra

Ursprung
e02e12d156
Commit
f771862053
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren