diff options
| author | 2026-10-13 12:29:23 -0700 | |
|---|---|---|
| committer | 2026-10-15 16:53:37 +0300 | |
| commit | 1f0e16fd229d99983f3d633f1f83b5204553a562 (patch) | |
| tree | 5623af3cac81ebce4af7a00e0a07b40c68e58886 /scripts/Makefile.thinlto | |
| parent | platform/x86/intel/tpmi: Drop unused arg from tpmi_set_control_base() (diff) | |
platform/x86/intel/tpmi: Do not assume TPMI is enumerated from PCI
The init path converts the enumerating device into a pci_dev without
checking and always registers the OOBMSM package to PCI device mapping.
That works today because TPMI is only enumerated from a PCI VSEC
capability, but ACPI based enumeration is being worked on and the device
it enumerates from is not a PCI device.
Do both only for a PCI device. The bus number read from the pci_dev is a
fallback that tpmi_process_info() overwrites with the value reported by
the TPMI_INFO feature, so there is nothing to do without a pci_dev. The
mapping stored by intel_vsec_set_mapping() is looked up by pci_dev and
cannot be consumed by another enumeration method, and calling it anyway
would fail the probe with -ENODEV.
While here, stop describing intel_tpmi_info as holding the TPMI devices
of one PCI device.
No functional change for PCI enumerated TPMI.
Co-developed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/20261013192935.2243291-9-sathyanarayanan.kuppuswamy@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
