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

Commit 5b3b51d6 authored by Danny Segal's avatar Danny Segal
Browse files

USB: gadget: Fix IPA disconnect on suspend change



The IPA disconnect on suspend change has introduced a new is_connected flag
for tracking the BAM port state. However, this flag is not updated on the
connect and disconnect work functions. With this fix it is set to true in
the end of the connect work function and to false in the end of the
disconnect work functions.

Change-Id: Ibe22929b06038bee8c3b29e01cc5b25008758935
CRs-fixed: 571703
Signed-off-by: default avatarDanny Segal <dsegal@codeaurora.org>
parent c32314b3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -222,6 +222,8 @@ static void bam2bam_data_disconnect_work(struct work_struct *w)
			teth_bridge_disconnect(d->ipa_params.src_client);

	}

	port->is_connected = false;
}
/*
 * This function configured data fifo based on index passed to get bam2bam
@@ -469,6 +471,7 @@ static void bam2bam_data_connect_work(struct work_struct *w)
		}
	}

	port->is_connected = true;
	pr_debug("%s: Connect workqueue done", __func__);
}