dmaengine: idxd: cleanup workqueue config after disabling
authorDave Jiang <dave.jiang@intel.com>
Thu, 25 Jun 2020 19:17:42 +0000 (12:17 -0700)
committerVinod Koul <vkoul@kernel.org>
Thu, 2 Jul 2020 13:32:19 +0000 (19:02 +0530)
commitda32b28c95a79e399e18c03f8178f41aec9c66e4
tree06ff18c09c7a6958408f186a7470a9a76ed58887
parent5b78fac4b1ba731cf4177fdbc1e3a4661521bcd0
dmaengine: idxd: cleanup workqueue config after disabling

After disabling a device, we should clean up the internal state for
the wqs and zero out the configuration registers. Without doing so can cause
issues when the user reprogram the wqs.

Fixes: c52ca478233c ("dmaengine: idxd: add configuration component of driver")
Reported-by: Yixin Zhang <yixin.zhang@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Tested-by: Yixin Zhang <yixin.zhang@intel.com>
Link: https://lore.kernel.org/r/159311264246.1198.11955791213681679428.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/sysfs.c