]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86/intel/pmt: Pass discovery index instead of resource
authorDavid E. Box <david.e.box@linux.intel.com>
Fri, 12 Jun 2026 21:01:45 +0000 (14:01 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Sun, 14 Jun 2026 23:12:58 +0000 (02:12 +0300)
commit4a87492cd137d158779923a034d7e742f7358952
treef722ef2671f4c4cdf2b2045f97899816e374ba1a
parent521460e6699557f2aa0e4818110e082b76809e98
platform/x86/intel/pmt: Pass discovery index instead of resource

Change PMT class code to pass a discovery index rather than a direct struct
resource when creating entries. This allows the class to identify the
discovery source generically without assuming PCI BAR resources. For PCI
devices, the index still resolves to a resource in the intel_vsec_device.
Other discovery sources, such as ACPI, can use the same index without
needing a struct resource.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Link: https://patch.msgid.link/8e785902c6a3ac1b5a9c3f0f65096553dc5acd4f.1781294741.git.david.e.box@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/pmt/class.c