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

Commit 009665ec authored by Gidon Studinski's avatar Gidon Studinski
Browse files

msm: ipa: ssr: stop QMI service in BEFORE_POWERUP stage



Cleanup QMI service in BEFORE_POWERUP SSR stage. This comes to prevent a
state where a QMI message is received or sent after the QMI handle has
already been freed.

Change-Id: If6a363345f7504c9c4de7cf097ed127c999e793a
Signed-off-by: default avatarGidon Studinski <gidons@codeaurora.org>
parent 0df741f7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2099,8 +2099,6 @@ static int ipa_wwan_remove(struct platform_device *pdev)
	ipa_del_mux_qmap_hdrs();
	if (ipa_qmi_ctx && ipa_qmi_ctx->modem_cfg_emb_pipe_flt == false)
		wwan_del_ul_flt_rule_to_ipa();
	/* clean up cached QMI msg/handlers */
	ipa_qmi_service_exit();
	ipa_cleanup_deregister_intf();
	atomic_set(&is_initialized, 0);
	pr_info("rmnet_ipa completed deinitialization\n");
@@ -2228,6 +2226,9 @@ static int ssr_notifier_cb(struct notifier_block *this,
		}
		if (SUBSYS_BEFORE_POWERUP == code) {
			pr_info("IPA received MPSS BEFORE_POWERUP\n");
			if (atomic_read(&is_ssr))
				/* clean up cached QMI msg/handlers */
				ipa_qmi_service_exit();
			ipa2_proxy_clk_vote();
			pr_info("IPA BEFORE_POWERUP handling is complete\n");
			return NOTIFY_DONE;