Skip to content
Commit 0b8c97a1 authored by Fengqian Gao's avatar Fengqian Gao Committed by Vinod Koul
Browse files

dmaengine: idxd: fix RO device state error after been disabled/reset

When IDXD is not configurable, that means its WQ, engine, and group
configurations cannot be changed. But it can be disabled and its state
should be set as disabled regardless it's configurable or not.

Fix this by setting device state IDXD_DEV_DISABLED for read-only device
as well in idxd_device_clear_state().

Fixes: cf4ac3fe

 ("dmaengine: idxd: fix lockdep warning on device driver removal")
Signed-off-by: default avatarFengqian Gao <fengqian.gao@intel.com>
Reviewed-by: default avatarXiaochen Shen <xiaochen.shen@intel.com>
Reviewed-by: default avatarDave Jiang <dave.jiang@intel.com>
Reviewed-by: default avatarFenghua Yu <fenghua.yu@intel.com>
Link: https://lore.kernel.org/r/20220930032835.2290-1-fengqian.gao@intel.com
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent e8dbd644
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment