OSDN Git Service

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)
commit4d3df16840a2bba5a345326426380e1381d976d2
treec0c04513c5b83cc0abdd07cfa64f54519f370916
parentc2dbcaa8c672d7ecc96c7a62fd6a34c9d3821bdb
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