dmaengine: idxd: add capability check for 'block on fault' attribute
authorDave Jiang <dave.jiang@intel.com>
Tue, 3 Aug 2021 22:32:06 +0000 (15:32 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 6 Aug 2021 13:53:05 +0000 (19:23 +0530)
commit81c2f79c2104c5b48f01da674bc2f7d4bc600db4
tree10bb62f8701a38e333e751dea6ed96625b053996
parent4153a7f6440f46261a3004009eaa914914f08055
dmaengine: idxd: add capability check for 'block on fault' attribute

The device general capability has a bit that indicate whether 'block on
fault' is supported. Add check to wq sysfs knob to check if cap exists
before allowing user to toggle.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162802992615.3084999.12539468940404102898.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c