From 1b364f648ec67ca3589c0eb5a3937268942c2940 Mon Sep 17 00:00:00 2001 From: Nitesh Venkatesh Date: Mon, 31 Aug 2026 06:32:34 +0000 Subject: [PATCH] Documentation: qat: clarify KPT enable device-state requirement The ABI description for /sys/bus/pci/devices//qat_kpt/enable did not mention that the device must be in the down state before the KPT enable attribute can be written. This requirement is enforced by the driver for both enabling and disabling KPT, but was not reflected in the ABI documentation, leaving users to discover it via -EINVAL. Update the description to note that the device must be in the down state before changing the KPT state. Signed-off-by: Nitesh Venkatesh Reviewed-by: Giovanni Cabiddu Reviewed-by: Ahsan Atta Signed-off-by: Herbert Xu --- Documentation/ABI/testing/sysfs-driver-qat_kpt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/ABI/testing/sysfs-driver-qat_kpt b/Documentation/ABI/testing/sysfs-driver-qat_kpt index c6480ea1fa4f..80831ce3d2ca 100644 --- a/Documentation/ABI/testing/sysfs-driver-qat_kpt +++ b/Documentation/ABI/testing/sysfs-driver-qat_kpt @@ -14,7 +14,8 @@ Contact: qat-linux@intel.com Description: (RW) Enables or disables Key Protection Technology (KPT). - Write 1 to enable KPT, or 0 to disable it. + Write 1 to enable KPT, or 0 to disable it. The device must be + in the down state before changing the KPT state. Example usage::