platform/x86/intel/sdsi: Add attribute to read the current meter state
authorDavid E. Box <david.e.box@linux.intel.com>
Thu, 11 Apr 2024 02:58:51 +0000 (19:58 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 15 Apr 2024 14:05:59 +0000 (16:05 +0200)
commit46b5e5eb1d41175bcf360d32f7b30f48cdbf99dc
tree9c648c1eabe9170e6101a3a1aa193a87924ece0b
parentd9a4b2aaec4c6f6c9ba1a956d0cf118e439e941c
platform/x86/intel/sdsi: Add attribute to read the current meter state

The meter_certificate file provides access to metering information that may
be attested but is only updated every 8 hours. Add new attribute,
meter_current, to allow reading an untested snapshot of the current values.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240411025856.2782476-5-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/sdsi.c