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

Commit ae56b6a5 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mailbox: msm_qmp: Do not reset channel open state"

parents fd21d250 e6e21ccd
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -340,11 +340,13 @@ static int qmp_startup(struct mbox_chan *chan)
		return -EAGAIN;
	}

	if (mbox->local_state == LINK_CONNECTED) {
		set_mcore_ch(mbox, QMP_MBOX_CH_CONNECTED);
		mbox->local_state = LOCAL_CONNECTING;
		send_irq(mbox->mdev);
	}
	mutex_unlock(&mbox->state_lock);

	send_irq(mbox->mdev);
	ret = wait_for_completion_timeout(&mbox->ch_complete,
					msecs_to_jiffies(QMP_TOUT_MS));
	if (!ret)