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

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

Merge "rpmsg: glink: Do not send to remote proc in reset"

parents dd27b57a 34e3298a
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -362,6 +362,9 @@ static int qcom_glink_tx(struct qcom_glink *glink,
	if (tlen >= glink->tx_pipe->length)
	if (tlen >= glink->tx_pipe->length)
		return -EINVAL;
		return -EINVAL;


	if (atomic_read(&glink->in_reset))
		return -ECONNRESET;

	spin_lock_irqsave(&glink->tx_lock, flags);
	spin_lock_irqsave(&glink->tx_lock, flags);


	while (qcom_glink_tx_avail(glink) < tlen) {
	while (qcom_glink_tx_avail(glink) < tlen) {