]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: add verification of DMA_INTERRUPT capability for dmatest
authorDave Jiang <dave.jiang@intel.com>
Tue, 12 Apr 2022 18:06:32 +0000 (11:06 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Apr 2022 11:51:15 +0000 (17:21 +0530)
commit3186f7b2387d39d0633c95ca6e4487c9e194dae9
treede724ef3c6e63f926141d9eb4a6824b6393c7953
parentdb7bc60abe68f409b341b9d2fa16dfe16af959ec
dmaengine: add verification of DMA_INTERRUPT capability for dmatest

Looks like I forgot to add DMA_INTERRUPT cap setting to the idxd driver and
dmatest is still working regardless of this mistake. Add an explicit check
of DMA_INTERRUPT capability for dmatest to make sure the DMA device being used
actually supports interrupt before the test is launched and also that the
driver is programmed correctly.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/164978679251.2361020.5856734256126725993.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmatest.c