diff options
author | Dave Jiang <dave.jiang@intel.com> | 2020-07-27 19:37:11 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-08-17 07:55:04 +0300 |
commit | df841b17e809f48f740cd2dd8b63543073c91a02 (patch) | |
tree | 6644cef3823d7a975c8884e9fe56e076bfcf32dc /drivers/dma/idxd/irq.c | |
parent | 7eb48dd094de5fe0e216b550e73aa85257903973 (diff) | |
download | linux-df841b17e809f48f740cd2dd8b63543073c91a02.tar.xz |
dmaengine: idxd: reset states after device disable or reset
The state for WQs should be reset to disabled when a device is reset or
disabled.
Fixes: da32b28c95a7 ("dmaengine: idxd: cleanup workqueue config after disabling")
Reported-by: Mona Hossain <mona.hossain@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/159586777684.27150.17589406415773568534.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/idxd/irq.c')
-rw-r--r-- | drivers/dma/idxd/irq.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/dma/idxd/irq.c b/drivers/dma/idxd/irq.c index b5142556cc4e..1e9e6991f543 100644 --- a/drivers/dma/idxd/irq.c +++ b/drivers/dma/idxd/irq.c @@ -11,18 +11,6 @@ #include "idxd.h" #include "registers.h" -void idxd_device_wqs_clear_state(struct idxd_device *idxd) -{ - int i; - - lockdep_assert_held(&idxd->dev_lock); - for (i = 0; i < idxd->max_wqs; i++) { - struct idxd_wq *wq = &idxd->wqs[i]; - - wq->state = IDXD_WQ_DISABLED; - } -} - static void idxd_device_reinit(struct work_struct *work) { struct idxd_device *idxd = container_of(work, struct idxd_device, work); |