From: Allen Hubbe Date: Tue, 12 May 2015 10:24:27 +0000 (-0400) Subject: NTB: Do not advance transport RX on link down X-Git-Tag: v4.2-rc1~5^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0900b33d1c8c24246eaedb9553f078024c332fc;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git NTB: Do not advance transport RX on link down On link down, don't advance RX index to the next entry. The next entry should never be valid after receiving the link down flag. Signed-off-by: Allen Hubbe Signed-off-by: Jon Mason --- diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c index 8d9b59f..0f86b60 100644 --- a/drivers/ntb/ntb_transport.c +++ b/drivers/ntb/ntb_transport.c @@ -1212,8 +1212,7 @@ static int ntb_process_rxc(struct ntb_transport_qp *qp) dev_dbg(&qp->ndev->pdev->dev, "link down flag set\n"); ntb_qp_link_down(qp); hdr->flags = 0; - iowrite32(qp->rx_index, &qp->rx_info->entry); - return 0; + return -EAGAIN; } if (hdr->ver != (u32)qp->rx_pkts) {