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

Commit af4e45e0 authored by Chaitanya Pratapa's avatar Chaitanya Pratapa
Browse files

msm: ipa: Fix reading the VLAN parameters



When IPA_FW is loaded via bootloader, ipa post initialization is
complete even before ipa3_write is executed. As a result
when ipa3_write is called with VLAN parameters, VLAN
info is not updated and VLAN offload fails. Fix reading the
VLAN parameters even if post initialization is complete.

Change-Id: I6f61e0ef4bfa9787b5b5d68bb323d69c443e9645
Signed-off-by: default avatarChaitanya Pratapa <cpratapa@codeaurora.org>
parent 5ecd48ae
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -6436,9 +6436,6 @@ static ssize_t ipa3_write(struct file *file, const char __user *buf,

	IPADBG("user input string %s\n", dbg_buff);

	/* Prevent consequent calls from trying to load the FW again. */
	if (ipa3_is_ready())
		return count;

	/*Ignore empty ipa_config file*/
	for (i = 0 ; i < count ; ++i) {
@@ -6492,6 +6489,10 @@ static ssize_t ipa3_write(struct file *file, const char __user *buf,
			ipa3_ctx->ipa_config_is_mhi ? "" : "non ");
	}

	/* Prevent consequent calls from trying to load the FW again. */
	if (ipa3_is_ready())
		return count;

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