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

Commit 609853f2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: Reset mpm_wcssaon_config bits before top level reset"

parents 6dfb1148 c576ff4d
Loading
Loading
Loading
Loading
+22 −2
Original line number Diff line number Diff line
@@ -1485,8 +1485,18 @@ static int icnss_hw_reset(struct icnss_priv *priv)
	icnss_hw_reset_wlan_rfactrl_power_down(priv);

	ret = icnss_hw_reset_rf_reset_cmd(priv);
	if (ret)
	if (ret) {
		icnss_hw_write_reg_field(priv->mpm_config_va,
					 MPM_WCSSAON_CONFIG_OFFSET,
					 MPM_WCSSAON_CONFIG_FORCE_ACTIVE, 0);
		icnss_hw_write_reg_field(priv->mpm_config_va,
					 MPM_WCSSAON_CONFIG_OFFSET,
					 MPM_WCSSAON_CONFIG_DISCONNECT_CLR, 0);
		icnss_hw_write_reg_field(priv->mpm_config_va,
					 MPM_WCSSAON_CONFIG_OFFSET,
					 MPM_WCSSAON_CONFIG_WLAN_DISABLE, 1);
		goto top_level_reset;
	}

	icnss_hw_reset_switch_to_cxo(priv);

@@ -1511,8 +1521,18 @@ static int icnss_hw_reset(struct icnss_priv *priv)
	}

	ret = icnss_hw_reset_xo_disable_cmd(priv);
	if (ret)
	if (ret) {
		icnss_hw_write_reg_field(priv->mpm_config_va,
					 MPM_WCSSAON_CONFIG_OFFSET,
					 MPM_WCSSAON_CONFIG_FORCE_ACTIVE, 0);
		icnss_hw_write_reg_field(priv->mpm_config_va,
					 MPM_WCSSAON_CONFIG_OFFSET,
					 MPM_WCSSAON_CONFIG_DISCONNECT_CLR, 0);
		icnss_hw_write_reg_field(priv->mpm_config_va,
					 MPM_WCSSAON_CONFIG_OFFSET,
					 MPM_WCSSAON_CONFIG_WLAN_DISABLE, 1);
		goto top_level_reset;
	}

	icnss_hw_write_reg_field(priv->mpm_config_va, MPM_WCSSAON_CONFIG_OFFSET,
				 MPM_WCSSAON_CONFIG_FORCE_ACTIVE, 0);