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

This commit is contained in:
Linux Build Service Account 2015-06-29 17:51:51 -07:00 committed by Gerrit - the friendly Code Review server
commit bf93fd8312
1 changed files with 3 additions and 9 deletions

View File

@ -540,15 +540,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) {
dev->tx_head = (dev->tx_head + 1) % MSM_TX_BUFS;
idx++;
if (dev->tx_head == dev->tx_tail ||
dev->wr_comp[idx] != NULL)
break;
}
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;
}
}