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

Commit 4ea7773b authored by Ghanim Fodi's avatar Ghanim Fodi
Browse files

msm: ipa3: Stop the correct xDCI channel on state change failure



At ipa3_usb_xdci_resume() to perform xDCI resume there is a try
to change the state to CONNECTED. If this fails, the cleanup
procedure needs to stop the DL and UL channels and not the UL
channel twice.

Change-Id: I76832ab9d5e0f46cfda77db4260af0e63669ba55
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 41747adc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2114,14 +2114,14 @@ int ipa3_usb_xdci_resume(u32 ul_clnt_hdl, u32 dl_clnt_hdl)

state_change_connected_fail:
	if (prev_state != IPA_USB_SUSPEND_IN_PROGRESS) {
		result = ipa3_stop_gsi_channel(ul_clnt_hdl);
		result = ipa3_stop_gsi_channel(dl_clnt_hdl);
		if (result)
			IPAERR("Error stopping UL channel: %d\n", result);
			IPA_USB_ERR("Error stopping DL channel: %d\n", result);
	}
start_dl_fail:
	result = ipa3_stop_gsi_channel(ul_clnt_hdl);
	if (result)
		IPAERR("Error stopping UL channel: %d\n", result);
		IPA_USB_ERR("Error stopping UL channel: %d\n", result);
start_ul_fail:
	ipa3_usb_release_prod();
prod_req_fail: