dmaengine: idxd: Expose ATS disable knob only when WQ ATS is supported
authorFenghua Yu <fenghua.yu@intel.com>
Wed, 12 Jul 2023 17:44:36 +0000 (10:44 -0700)
committerVinod Koul <vkoul@kernel.org>
Tue, 1 Aug 2023 18:04:43 +0000 (23:34 +0530)
commit62b41b656666d2d35890124df5ef0881fe6d6769
tree42aa5e2f2b346064982be5c47b58e6d9842e3b95
parent97b1185fe54c8ce94104e3c7fa4ee0bbedd85920
dmaengine: idxd: Expose ATS disable knob only when WQ ATS is supported

WQ Advanced Translation Service (ATS) can be controlled only when
WQ ATS is supported. The sysfs ATS disable knob should be visible only
when the features is supported.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230712174436.3435088-2-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c