diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2023-02-01 17:07:34 -0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-02-06 13:47:26 +0100 |
commit | 4ec5d0231d2e4aebe41152d57c6b4f1e7ea14f08 (patch) | |
tree | b7ec1f0cd7b3f4416470542a96a446708b7e53a6 /drivers/platform/x86 | |
parent | 251a41116aebdbb7ff00fbc635b1c1a0f08119e6 (diff) | |
download | lwn-4ec5d0231d2e4aebe41152d57c6b4f1e7ea14f08.tar.gz lwn-4ec5d0231d2e4aebe41152d57c6b4f1e7ea14f08.zip |
platform/x86/intel/vsec: Support private data
Add fields to struct intel_vsec_device, so that core module (which
creates aux bus devices) can pass private data to the client drivers.
For example there is one vsec device instance per CPU package. On a
multi package system, this private data can be used to pass the package
ID. This package id can be used by client drivers to change power
settings for a specific CPU package by targeting MMIO space of the
correct PCI device.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: David E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20230202010738.2186174-4-srinivas.pandruvada@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r-- | drivers/platform/x86/intel/vsec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel/vsec.h b/drivers/platform/x86/intel/vsec.h index d02c340fd458..ae8fe92c5595 100644 --- a/drivers/platform/x86/intel/vsec.h +++ b/drivers/platform/x86/intel/vsec.h @@ -38,6 +38,8 @@ struct intel_vsec_device { struct ida *ida; struct intel_vsec_platform_info *info; int num_resources; + void *priv_data; + size_t priv_data_size; }; int intel_vsec_add_aux(struct pci_dev *pdev, struct device *parent, |