]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc445cafdd3c268ce445ba9d2f0102f27f0d7daf5
tree06ff18c09c7a6958408f186a7470a9a76ed58887
parent2a90717259878ada5a482503ad39c9087106731e
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: 5c1d9d10ca7d ("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