Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8173d4b authored by Jianmin Zhu's avatar Jianmin Zhu Committed by nshrivas
Browse files

qcacmn: Force wake PCIe for hsp register write

make sure both PCIe and device are force woken for the register
writes for hsp, or write may fail.
Earlier WAR is not required as we have root caused it.

Change-Id: I350b810a6cef8eec46428e57f5b779f888552c1b
CRs-Fixed: 2677342
parent fbb3b344
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -270,6 +270,12 @@ static void hal_validate_shadow_register(struct hal_soc *hal,

static void hal_target_based_configure(struct hal_soc *hal)
{
	/**
	 * Indicate Initialization of srngs to avoid force wake
	 * as umac power collapse is not enabled yet
	 */
	hal->init_phase = true;

	switch (hal->target_type) {
#ifdef QCA_WIFI_QCA6290
	case TARGET_TYPE_QCA6290:
@@ -287,6 +293,7 @@ static void hal_target_based_configure(struct hal_soc *hal)
	case TARGET_TYPE_QCA6490:
		hal->use_register_windowing = true;
		hal_qca6490_attach(hal);
		hal->init_phase = false;
	break;
#endif
#ifdef QCA_WIFI_QCA6750
@@ -764,12 +771,6 @@ void *hal_attach(struct hif_opaque_softc *hif_handle, qdf_device_t qdf_dev)

	hal_reg_write_fail_history_init(hal);

	/**
	 * Indicate Initialization of srngs to avoid force wake
	 * as umac power collapse is not enabled yet
	 */
	hal->init_phase = true;

	qdf_atomic_init(&hal->active_work_cnt);
	hal_delayed_reg_write_init(hal);