]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: add missing callback function to support DMA_INTERRUPT
authorDave Jiang <dave.jiang@intel.com>
Tue, 26 Apr 2022 22:32:06 +0000 (15:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:28 +0000 (18:36 +0200)
commit69d48f8f3d96e14928b61147dc5bab0ab7b18069
treee14e559fe634fa37ee3d4f8ceb40276f99ec9b7c
parentdc23a6f5074404439ef21779ec9c85d85ef7bc5f
dmaengine: idxd: add missing callback function to support DMA_INTERRUPT

commit b70f274b3410f1b83f46f3989a6db3615d4dcdc6 upstream.

When setting DMA_INTERRUPT capability, a callback function
dma->device_prep_dma_interrupt() is needed to support this capability.
Without setting the callback, dma_async_device_register() will fail dma
capability check.

Fixes: a740a0900e91 ("dmaengine: idxd: set DMA_INTERRUPT cap bit")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/165101232637.3951447.15765792791591763119.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/idxd/dma.c