linux-stable/drivers/dma/idxd
Dave Jiang bad2e51e49 dmaengine: idxd: skip clearing device context when device is read-only
[ Upstream commit 1cd8e751d9 ]

If the device shows up as read-only configuration, skip the clearing of the
state as the context must be preserved for device re-enable after being
disabled.

Fixes: 0dcfe41e9a ("dmanegine: idxd: cleanup all device related bits after disabling device")
Reported-by: Tony Zhu <tony.zhu@intel.com>
Tested-by: Tony Zhu <tony.zhu@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/164971479479.2200566.13980022473526292759.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-27 14:41:04 +02:00
..
Makefile dmaengine: idxd: move dsa_drv support to compatible mode 2021-07-21 10:09:16 +05:30
bus.c Bus: Make remove callback return void tag 2021-07-27 19:12:14 +05:30
cdev.c dmaengine: idxd: remove interrupt disable for dev_lock 2021-08-29 19:14:20 +05:30
compat.c dmaengine: idxd: Fix a possible NULL pointer dereference 2021-08-02 12:35:10 +05:30
device.c dmaengine: idxd: skip clearing device context when device is read-only 2022-04-27 14:41:04 +02:00
dma.c dmaengine: idxd: change MSIX allocation based on per wq activation 2022-01-05 13:11:22 +05:30
idxd.h dmaengine: idxd: change bandwidth token to read buffers 2022-01-05 13:14:25 +05:30
init.c dmaengine: idxd: change bandwidth token to read buffers 2022-01-05 13:14:25 +05:30
irq.c dmaengine: idxd: change MSIX allocation based on per wq activation 2022-01-05 13:11:22 +05:30
perfmon.c dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
perfmon.h dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
registers.h dmaengine: idxd: change bandwidth token to read buffers 2022-01-05 13:14:25 +05:30
submit.c dmaengine: idxd: fix retry value to be constant for duration of function call 2022-04-27 14:41:03 +02:00
sysfs.c dmaengine: idxd: add RO check for wq max_transfer_size write 2022-04-27 14:41:04 +02:00