platform/x86: ISST: Add API version of the target
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 11 Feb 2023 06:32:49 +0000 (22:32 -0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 7 Mar 2023 11:08:30 +0000 (12:08 +0100)
commit0e8ae77c869ed425488e3db43dbb76ec9bca8655
tree36796ca0b3f39aadbb8900210acbbaa848f5b0ca
parent33c16dc1a2d1697be0fec95a0393bef4fbc27a0f
platform/x86: ISST: Add API version of the target

User space can get the API version using IOCTL
ISST_IF_GET_PLATFORM_INFO. This information can be used to get IOCTLs
supported by the kernel driver. This version is hardcoded in the driver.

Allow the registered client to specify the supported API version. In
this way a registered client can specify a higher API version to extend
IOCTL set.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20230211063257.311746-5-srinivas.pandruvada@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/speed_select_if/isst_if_common.c
drivers/platform/x86/intel/speed_select_if/isst_if_common.h