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

Commit 6e1d26bc authored by c_mtharu's avatar c_mtharu
Browse files

msm: ADSPRPC: Update port state on glink open error



Set port state to DISCONNECTED when glink_open returns failure for
opening a channel on retry to connect.

Change-Id: Ic8ff3fa68b17cad59e3350c61864c1746bb5ee06
Acked-by: default avatarViswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent f526258c
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -2088,8 +2088,11 @@ static int fastrpc_glink_open(int cid)
	cfg->notify_rx_intent_req = fastrpc_glink_notify_rx_intent_req;
	cfg->notify_rx_intent_req = fastrpc_glink_notify_rx_intent_req;
	handle = glink_open(cfg);
	handle = glink_open(cfg);
	VERIFY(err, !IS_ERR_OR_NULL(handle));
	VERIFY(err, !IS_ERR_OR_NULL(handle));
	if (err)
	if (err) {
		if (link->port_state == FASTRPC_LINK_CONNECTING)
			link->port_state = FASTRPC_LINK_DISCONNECTED;
		goto bail;
		goto bail;
	}
	me->channel[cid].chan = handle;
	me->channel[cid].chan = handle;
bail:
bail:
	return err;
	return err;