diff options
author | David E. Box <david.e.box@linux.intel.com> | 2024-07-25 08:23:41 -0400 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2024-08-12 16:21:31 +0200 |
commit | e92affc74cd8624a548b380af7364be037adef35 (patch) | |
tree | cf2cf4546ac25891898b12041615f28b1bc4a370 /drivers/platform | |
parent | fc9aef4382c02774662da3d7e1de8ba224e04f80 (diff) | |
download | lwn-e92affc74cd8624a548b380af7364be037adef35.tar.gz lwn-e92affc74cd8624a548b380af7364be037adef35.zip |
platform/x86/intel/vsec: Add PMT read callbacks
Some PMT providers require device specific actions before their telemetry
can be read. Provide assignable PMT read callbacks to allow providers to
perform those actions.
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20240725122346.4063913-3-michael.j.ruhl@intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/intel/vsec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel/vsec.c b/drivers/platform/x86/intel/vsec.c index 2b46807f868b..7b5cc9993974 100644 --- a/drivers/platform/x86/intel/vsec.c +++ b/drivers/platform/x86/intel/vsec.c @@ -212,6 +212,7 @@ static int intel_vsec_add_dev(struct pci_dev *pdev, struct intel_vsec_header *he intel_vsec_dev->num_resources = header->num_entries; intel_vsec_dev->quirks = info->quirks; intel_vsec_dev->base_addr = info->base_addr; + intel_vsec_dev->priv_data = info->priv_data; if (header->id == VSEC_ID_SDSI) intel_vsec_dev->ida = &intel_vsec_sdsi_ida; |