]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: skip clearing device context when device is read-only
authorDave Jiang <dave.jiang@intel.com>
Mon, 11 Apr 2022 22:06:34 +0000 (15:06 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Apr 2022 11:54:43 +0000 (17:24 +0530)
commit66176c91aa91de6edc142a30be1464f4d6d0be42
tree1e8944c70b1c1a7b91c29a87d63fda0b3caf4979
parent6eaa6dfd01427a019bc5f57fbff1d2f698be3263
dmaengine: idxd: skip clearing device context when device is read-only

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: a28c7234fdc1 ("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>
drivers/dma/idxd/device.c