platform/x86/intel/tpmi: Add debugfs support for read/write blocked
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 25 Sep 2023 19:42:19 +0000 (12:42 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 4 Oct 2023 08:57:32 +0000 (11:57 +0300)
commit8df012a7f513141412b3c35af204ccdb810fcc81
treed824219e8b9617e91ad3327809a4741d00684c19
parent4b0d9c8f8f55562ed5346723e66eec64f22887f4
platform/x86/intel/tpmi: Add debugfs support for read/write blocked

Display read and write blocked status of each TPMI feature in addition
to disabled and locked status.

This will require reading of read/write blocked state from the hardware.
Currently tpmi_read_feature_status(), doesn't provide this state.

Define TPMI feature state as defined in the TPMI spec. Modify the function
tpmi_read_feature_status() to update full feature state instead of just
disabled and locked state.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20230925194219.966602-1-srinivas.pandruvada@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/tpmi.c