qcacmn: Support hif window register and set init_phase for Kiwi
For Kiwi, if UMAC force wake is enabled, HIF window register support is needed as well. currently hal_soc->init_phase just be true for a very short periord, this lead to hif_force_wake_request is called frequently when configure register during initialization, this is not necessary as pld and device is not in power collapse state during this period. Enable HIF window register and increase init_phase true period Change-Id: I0b5394bbc1ca73d20b2fcabbf2a261e6f8335626 CRs-Fixed: 3097991
This commit is contained in:

committed by
Madan Koyyalamudi

parent
3ac9cf9e6b
commit
c9ff3a2ac9
@@ -427,7 +427,6 @@ static void hal_target_based_configure(struct hal_soc *hal)
|
|||||||
case TARGET_TYPE_WCN7850:
|
case TARGET_TYPE_WCN7850:
|
||||||
hal->use_register_windowing = true;
|
hal->use_register_windowing = true;
|
||||||
hal_wcn7850_attach(hal);
|
hal_wcn7850_attach(hal);
|
||||||
hal->init_phase = false;
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if defined(QCA_WIFI_QCA8074) && defined(WIFI_TARGET_TYPE_3_0)
|
#if defined(QCA_WIFI_QCA8074) && defined(WIFI_TARGET_TYPE_3_0)
|
||||||
|
@@ -3485,6 +3485,7 @@ static void hif_pci_init_reg_windowing_support(struct hif_pci_softc *sc,
|
|||||||
case TARGET_TYPE_QCN7605:
|
case TARGET_TYPE_QCN7605:
|
||||||
case TARGET_TYPE_QCA6490:
|
case TARGET_TYPE_QCA6490:
|
||||||
case TARGET_TYPE_QCA6390:
|
case TARGET_TYPE_QCA6390:
|
||||||
|
case TARGET_TYPE_WCN7850:
|
||||||
sc->use_register_windowing = true;
|
sc->use_register_windowing = true;
|
||||||
qdf_spinlock_create(&sc->register_access_lock);
|
qdf_spinlock_create(&sc->register_access_lock);
|
||||||
sc->register_window = 0;
|
sc->register_window = 0;
|
||||||
@@ -3739,7 +3740,7 @@ bool hif_pci_needs_bmi(struct hif_softc *scn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FORCE_WAKE
|
#ifdef FORCE_WAKE
|
||||||
#ifdef DEVICE_FORCE_WAKE_ENABLE
|
#if defined(DEVICE_FORCE_WAKE_ENABLE) && !defined(CONFIG_PLD_PCIE_FW_SIM)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HIF_POLL_UMAC_WAKE poll value to indicate if UMAC is powered up
|
* HIF_POLL_UMAC_WAKE poll value to indicate if UMAC is powered up
|
||||||
|
Reference in New Issue
Block a user