dmaengine: idxd: Allow ATS disable update only for configurable devices
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 11 Aug 2023 01:26:34 +0000 (18:26 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Aug 2023 13:26:30 +0000 (18:56 +0530)
commit0056a7f07b0a63e6cee815a789eabba6f3a710f0
tree991655df504838de9faf748a9a8f3c6c58efaaba
parent84b798fedf3fa8f0ab0c096593ba817abc454fe5
dmaengine: idxd: Allow ATS disable update only for configurable devices

ATS disable status in a WQ is read-only if the device is not configurable.
This change ensures that the ATS disable attribute can be modified via
sysfs only on configurable devices.

Fixes: 92de5fa2dc39 ("dmaengine: idxd: add ATS disable knob for work queues")
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230811012635.535413-1-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c