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

Commit db268145 authored by Jinesh K. Jayakumar's avatar Jinesh K. Jayakumar
Browse files

msm: ipa: Reset GSI channel before gsi_dealloc_channel() call



GSI channel enters STOPPED state when gsi_stop_channel() is called instead
of ALLOCATED state. Call gsi_reset_channel() before gsi_dealloc_channel()
to change channel state to ALLOCATED.

Change-Id: Icfaf03483c4a90317f9a5e6150ad2951d3bc0aaf
Signed-off-by: default avatarJinesh K. Jayakumar <jineshk@codeaurora.org>
parent 90892187
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -222,6 +222,14 @@ int ipa_eth_gsi_dealloc(struct ipa_eth_channel *ch)
	}

	if (ep_ctx->gsi_chan_hdl != ~0) {
		gsi_rc = gsi_reset_channel(ep_ctx->gsi_chan_hdl);
		if (gsi_rc != GSI_STATUS_SUCCESS) {
			ipa_eth_dev_err(ch->eth_dev,
				"Failed to reset channel %u",
				ep_ctx->gsi_chan_hdl);
			return gsi_rc;
		}

		gsi_rc = gsi_dealloc_channel(ep_ctx->gsi_chan_hdl);
		if (gsi_rc != GSI_STATUS_SUCCESS) {
			ipa_eth_dev_err(ch->eth_dev,