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

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

Merge "usb_bam: Enable flow control in IPA if disabled during disconnect"

parents 1b18330a 9f9c6432
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -960,6 +960,14 @@ static int usb_bam_disconnect_ipa_cons(
	pipe_connect->inactivity_notify = NULL;
	pipe_connect->priv = NULL;

	/*
	 * On some platforms, there is a chance that flow control
	 * is disabled from IPA side, due to this IPA core may not
	 * consume data from USB. Hence notify IPA to enable flow
	 * control and then check sps pipe is empty or not before
	 * processing USB->IPA pipes disconnect.
	 */
	ipa_clear_endpoint_delay(ipa_params->cons_clnt_hdl);
retry:
	/* Make sure pipe is empty before disconnecting it */
	while (1) {