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

Commit 2643529d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa3: add check to load gsi fw once"

parents 66d3903b 30ef773f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -5956,6 +5956,15 @@ static ssize_t ipa3_write(struct file *file, const char __user *buf,
			ipa3_ctx->ipa_config_is_mhi ? "" : "non ");
	}

	/* Prevent multiple calls from trying to load the FW again. */
	if (ipa3_ctx->fw_loaded) {
		IPAERR("not load FW again\n");
		return count;
	}

	/* Schedule WQ to load ipa-fws */
	ipa3_ctx->fw_loaded = true;

	queue_work(ipa3_ctx->transport_power_mgmt_wq,
		&ipa3_fw_loading_work);

+1 −0
Original line number Diff line number Diff line
@@ -1837,6 +1837,7 @@ struct ipa3_context {
	int (*client_lock_unlock[IPA_MAX_CLNT])(bool is_lock);
	atomic_t is_ssr;
	bool (*get_teth_port_state[IPA_MAX_CLNT])(void);
	bool fw_loaded;
};

struct ipa3_plat_drv_res {