platform/x86: ISST: Add IOCTL default callback
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 11 Feb 2023 06:32:48 +0000 (22:32 -0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 7 Mar 2023 11:08:30 +0000 (12:08 +0100)
commit33c16dc1a2d1697be0fec95a0393bef4fbc27a0f
treef417819c8726b8a30a526418a532b22919e24795
parent6614823a16b700b7d996e75b1200b29bec88f8ef
platform/x86: ISST: Add IOCTL default callback

The common IOCTL handler has a predefined list of IOCTLs it can
handle. There is no default handler, if there is no match.

Allow a client driver to define their own version of default IOCTL
callback. In this way the default handling is passed to the client
drivers to handle.

With the introduction of TPMI target, IOCTL list is extended. The
additional TPMI specific IOCTLs will be passed to the TPMI client
driver default IOCTL handler.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20230211063257.311746-4-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