Revert "rpmsg: glink: Set tail pointer to 0 at end of FIFO"

This reverts commit 06e60a45a4.

This is a preparation change for merging android-5.4.6 into
msm-5.4 branch. Same delta was already committed via:

f1d8e56eb5 rpmsg: Add snapshot of RPMSG drivers for lahaina

Change-Id: Ib3b722b93e89ba048ad8965c7ad2e8d1d5d9f75f
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
This commit is contained in:
Blagovest Kolenichev 2020-01-22 05:21:01 -08:00
commit 7229ee822d

View file

@ -105,7 +105,7 @@ static void glink_smem_rx_advance(struct qcom_glink_pipe *np,
tail = le32_to_cpu(*pipe->tail);
tail += count;
if (tail >= pipe->native.length)
if (tail > pipe->native.length)
tail -= pipe->native.length;
*pipe->tail = cpu_to_le32(tail);