dmanegine: idxd: cleanup all device related bits after disabling device
authorDave Jiang <dave.jiang@intel.com>
Sat, 5 Jun 2021 00:06:21 +0000 (17:06 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 Jul 2021 06:50:56 +0000 (12:20 +0530)
commit0dcfe41e9a4ca759ccc87a48e3bb9cc3b08ff1e8
treefb0fe3773d9602c4e757f0019bc108e36f3653ed
parent53b50458110d829c8fc45e7803a335a515698fd8
dmanegine: idxd: cleanup all device related bits after disabling device

The previous state cleanup patch only performed wq state cleanups. This
does not go far enough as when device is disabled or reset, the state
for groups and engines must also be cleaned up. Add additional state
cleanup beyond wq cleanup. Tie those cleanups directly to device
disable and reset, and wq disable and reset.

Fixes: da32b28c95a7 ("dmaengine: idxd: cleanup workqueue config after disabling")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162285154108.2096632.5572805472362321307.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/irq.c
drivers/dma/idxd/sysfs.c