]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: plx-dma: Implement hardware initialization and cleanup
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 3 Jan 2020 21:20:20 +0000 (14:20 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 15 Jan 2020 14:10:51 +0000 (19:40 +0530)
commit0c14f2538367a533c717b660fb453e2bbd811e16
tree3254cbf700a9a0f1a5578abd3c47adca8ab7a3c5
parentb80badb2c428e108491ce0bb4c658c27454f713a
dmaengine: plx-dma: Implement hardware initialization and cleanup

Allocate DMA coherent memory for the ring of DMA descriptors and
program the appropriate hardware registers.

A tasklet is created which is triggered on an interrupt to process
all the finished requests. Additionally, any remaining descriptors
are aborted when the hardware is removed or the resources freed.

Use an RCU pointer to synchronize PCI device unbind.

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