Skip to contentSkip to conversation

DMA: remove dma_async_memcpy_issue_pending() macro

PATCH RESEND New Bartlomiej Zolnierkiewicz 1 participant 1 message Dec 5, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/2 DMA: remove dma_async_memcpy_issue_pending() macro

From: Bartlomiej Zolnierkiewicz <[email protected]>
Subject: [PATCH 1/2] DMA: remove dma_async_memcpy_issue_pending() macro

Just use dma_async_issue_pending() directly.

---
 drivers/misc/carma/carma-fpga-program.c |    2 +-
 drivers/misc/carma/carma-fpga.c         |    2 +-
 include/linux/dmaengine.h               |    2 --
 net/ipv4/tcp.c                          |    6 +++---
 4 files changed, 5 insertions(+), 7 deletions(-)
drivers/misc/carma/carma-fpga-program.c +1 -1
Index: b/drivers/misc/carma/carma-fpga-program.c
===================================================================
@@ -546,7 +546,7 @@ static noinline int fpga_program_dma(str
 		goto out_dma_unmap;
 	}
 
-	dma_async_memcpy_issue_pending(chan);
+	dma_async_issue_pending(chan);
 
 	/* Set the total byte count */
 	fpga_set_byte_count(priv->regs, priv->bytes);
drivers/misc/carma/carma-fpga.c +1 -1
Index: b/drivers/misc/carma/carma-fpga.c
===================================================================
@@ -749,7 +749,7 @@ static irqreturn_t data_irq(int irq, voi
 	submitted = true;
 
 	/* Start the DMA Engine */
-	dma_async_memcpy_issue_pending(priv->chan);
+	dma_async_issue_pending(priv->chan);
 
 out:
 	/* If no DMA was submitted, re-enable interrupts */
include/linux/dmaengine.h +0 -2
Index: b/include/linux/dmaengine.h
===================================================================
@@ -902,8 +902,6 @@ static inline void dma_async_issue_pendi
 	chan->device->device_issue_pending(chan);
 }
 
-#define dma_async_memcpy_issue_pending(chan) dma_async_issue_pending(chan)
-
 /**
  * dma_async_is_tx_complete - poll for transaction completion
  * @chan: DMA channel
net/ipv4/tcp.c +3 -3
Index: b/net/ipv4/tcp.c
===================================================================
@@ -1410,7 +1410,7 @@ static void tcp_service_net_dma(struct s
 		return;
 
 	last_issued = tp->ucopy.dma_cookie;
-	dma_async_memcpy_issue_pending(tp->ucopy.dma_chan);
+	dma_async_issue_pending(tp->ucopy.dma_chan);
 
 	do {
 		if (dma_async_memcpy_complete(tp->ucopy.dma_chan,
@@ -1744,7 +1744,7 @@ int tcp_recvmsg(struct kiocb *iocb, stru
 				tcp_service_net_dma(sk, true);
 				tcp_cleanup_rbuf(sk, copied);
 			} else
-				dma_async_memcpy_issue_pending(tp->ucopy.dma_chan);
+				dma_async_issue_pending(tp->ucopy.dma_chan);
 		}
 #endif
 		if (copied >= target) {
@@ -1837,7 +1837,7 @@ do_prequeue:
 					break;
 				}
 
-				dma_async_memcpy_issue_pending(tp->ucopy.dma_chan);
+				dma_async_issue_pending(tp->ucopy.dma_chan);
 
 				if ((offset + used) == skb->len)
 					copied_early = true;