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

Commit e472d26e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "slim-msm: manage TX message queue pointer"

parents b3348636 eca29577
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -474,15 +474,9 @@ void msm_slim_tx_msg_return(struct msm_slim_ctrl *dev, int err)
		}
		/* reclaim all packets that were delivered out of order */
		if (idx != dev->tx_head)
			pr_err("SLIM OUT OF ORDER TX:idx:%d, head:%d", idx,
								dev->tx_head);
		while (idx == dev->tx_head) {
			SLIM_WARN(dev, "SLIM OUT OF ORDER TX:idx:%d, head:%d",
				idx, dev->tx_head);
		dev->tx_head = (dev->tx_head + 1) % MSM_TX_BUFS;
			idx++;
			if (dev->tx_head == dev->tx_tail ||
					dev->wr_comp[idx] != NULL)
				break;
		}
	}
}