Ver código fonte

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
Jinwei Chen 3 anos atrás
pai
commit
c9ff3a2ac9
2 arquivos alterados com 2 adições e 2 exclusões
  1. 0 1
      hal/wifi3.0/hal_srng.c
  2. 2 1
      hif/src/pcie/if_pci.c

+ 0 - 1
hal/wifi3.0/hal_srng.c

@@ -427,7 +427,6 @@ static void hal_target_based_configure(struct hal_soc *hal)
 	case TARGET_TYPE_WCN7850:
 		hal->use_register_windowing = true;
 		hal_wcn7850_attach(hal);
-		hal->init_phase = false;
 		break;
 #endif
 #if defined(QCA_WIFI_QCA8074) && defined(WIFI_TARGET_TYPE_3_0)

+ 2 - 1
hif/src/pcie/if_pci.c

@@ -3485,6 +3485,7 @@ static void hif_pci_init_reg_windowing_support(struct hif_pci_softc *sc,
 	case TARGET_TYPE_QCN7605:
 	case TARGET_TYPE_QCA6490:
 	case TARGET_TYPE_QCA6390:
+	case TARGET_TYPE_WCN7850:
 		sc->use_register_windowing = true;
 		qdf_spinlock_create(&sc->register_access_lock);
 		sc->register_window = 0;
@@ -3739,7 +3740,7 @@ bool hif_pci_needs_bmi(struct hif_softc *scn)
 }
 
 #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