dmaengine: idxd: move wq irq enabling to after device enable
authorDave Jiang <dave.jiang@intel.com>
Fri, 4 Mar 2022 21:02:57 +0000 (14:02 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Apr 2022 11:55:42 +0000 (17:25 +0530)
commit439b5e765a00a546e8f6b6eedac69889d0b5a869
tree00c32ba3f9a003cf5bde640e85f117830616dfc7
parent96144c8fb3921aa8f02ecac2129d30fa36f93ccb
dmaengine: idxd: move wq irq enabling to after device enable

Move the calling of request_irq() and other related irq setup code until
after the WQ is successfully enabled. This reduces the amount of
setup/teardown if the wq is not configured correctly and cannot be enabled.

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