]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: plx-dma: Implement descriptor submission
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 3 Jan 2020 21:20:21 +0000 (14:20 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 15 Jan 2020 14:10:51 +0000 (19:40 +0530)
commitb6e9baba2a50cc8deee5edcda5a2ebcdcc485351
treec0c04513c5b83cc0abdd07cfa64f54519f370916
parent0c14f2538367a533c717b660fb453e2bbd811e16
dmaengine: plx-dma: Implement descriptor submission

On prep, a spin lock is taken and the next entry in the circular buffer
is filled. On submit, the valid bit is set in the hardware descriptor
and the lock is released.

The DMA engine is started (if it's not already running) when the client
calls dma_async_issue_pending().

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/20200103212021.2881-4-logang@deltatee.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/plx_dma.c