Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1568510 > unrolled thread
| Started by | Boris Brezillon <boris.brezillon@free-electrons.com> |
|---|---|
| First post | 2017-01-27 17:50 +0100 |
| Last post | 2017-01-31 04:40 +0100 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH RESEND 2/5] dmaengine: Provide a wrapper for memcpy operations Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-01-27 17:50 +0100
Re: [PATCH RESEND 2/5] dmaengine: Provide a wrapper for memcpy operations Vinod Koul <vinod.koul@intel.com> - 2017-01-30 18:00 +0100
Re: [PATCH RESEND 2/5] dmaengine: Provide a wrapper for memcpy operations Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-01-30 18:50 +0100
Re: [PATCH RESEND 2/5] dmaengine: Provide a wrapper for memcpy operations Vinod Koul <vinod.koul@intel.com> - 2017-01-31 04:40 +0100
| From | Boris Brezillon <boris.brezillon@free-electrons.com> |
|---|---|
| Date | 2017-01-27 17:50 +0100 |
| Subject | [PATCH RESEND 2/5] dmaengine: Provide a wrapper for memcpy operations |
| Message-ID | <t4hSN-6xB-25@gated-at.bofh.it> |
Almost all ->device_prep_dma_xx() methods have a wrapper defined in
dmaengine.h. Add one for ->device_prep_dma_memcpy().
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
---
include/linux/dmaengine.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index feee6ec6a13b..533680860865 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -894,6 +894,17 @@ static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_memset(
len, flags);
}
+static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_memcpy(
+ struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
+ size_t len, unsigned long flags)
+{
+ if (!chan || !chan->device || !chan->device->device_prep_dma_memcpy)
+ return NULL;
+
+ return chan->device->device_prep_dma_memcpy(chan, dest, src,
+ len, flags);
+}
+
static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_sg(
struct dma_chan *chan,
struct scatterlist *dst_sg, unsigned int dst_nents,
--
2.7.4
[toc] | [next] | [standalone]
| From | Vinod Koul <vinod.koul@intel.com> |
|---|---|
| Date | 2017-01-30 18:00 +0100 |
| Subject | Re: [PATCH RESEND 2/5] dmaengine: Provide a wrapper for memcpy operations |
| Message-ID | <t5nt9-6kA-31@gated-at.bofh.it> |
| In reply to | #1568510 |
On Fri, Jan 27, 2017 at 05:42:01PM +0100, Boris Brezillon wrote: > Almost all ->device_prep_dma_xx() methods have a wrapper defined in > dmaengine.h. Add one for ->device_prep_dma_memcpy(). Looks good to me. Acked-by: Vinod Koul <vinod.koul@intel.com> -- ~Vinod
[toc] | [prev] | [next] | [standalone]
| From | Boris Brezillon <boris.brezillon@free-electrons.com> |
|---|---|
| Date | 2017-01-30 18:50 +0100 |
| Subject | Re: [PATCH RESEND 2/5] dmaengine: Provide a wrapper for memcpy operations |
| Message-ID | <t5ofw-6PP-21@gated-at.bofh.it> |
| In reply to | #1569896 |
Hi Vinod, On Mon, 30 Jan 2017 22:24:17 +0530 Vinod Koul <vinod.koul@intel.com> wrote: > On Fri, Jan 27, 2017 at 05:42:01PM +0100, Boris Brezillon wrote: > > Almost all ->device_prep_dma_xx() methods have a wrapper defined in > > dmaengine.h. Add one for ->device_prep_dma_memcpy(). > > Looks good to me. > > Acked-by: Vinod Koul <vinod.koul@intel.com> > > Maybe you can take this patch directly (the NAND related bits are for 4.12).
[toc] | [prev] | [next] | [standalone]
| From | Vinod Koul <vinod.koul@intel.com> |
|---|---|
| Date | 2017-01-31 04:40 +0100 |
| Subject | Re: [PATCH RESEND 2/5] dmaengine: Provide a wrapper for memcpy operations |
| Message-ID | <t5xst-437-5@gated-at.bofh.it> |
| In reply to | #1569954 |
On Mon, Jan 30, 2017 at 06:47:21PM +0100, Boris Brezillon wrote: > Hi Vinod, > > On Mon, 30 Jan 2017 22:24:17 +0530 > Vinod Koul <vinod.koul@intel.com> wrote: > > > On Fri, Jan 27, 2017 at 05:42:01PM +0100, Boris Brezillon wrote: > > > Almost all ->device_prep_dma_xx() methods have a wrapper defined in > > > dmaengine.h. Add one for ->device_prep_dma_memcpy(). > > > > Looks good to me. > > > > Acked-by: Vinod Koul <vinod.koul@intel.com> > > > > > > Maybe you can take this patch directly (the NAND related bits are for > 4.12). Good idea, applied now.. -- ~Vinod
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web