summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2026-09-21 12:04:11 -0500
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-10-13 12:05:47 +0300
commit33c14a2a9dca43875621a02eaac99c6e321f4a3c (patch)
tree7e9f162711e3bf0a4bfb05b670602bbadd9bfbd7 /tools/perf/scripts/python/export-to-sqlite.py
parentb7b273844b94af9cc64907dccd9e7997c2b60f1a (diff)
platform/x86/amd: hfi: Rely on ACPI enumeration instead of a dummy device
amd_hfi_init() manually registers a platform device with platform_device_register_simple() before registering the driver. This device has no ACPI companion, so when amd_hfi_probe() runs for it the acpi_match_device() check fails and probe returns -ENODEV. The driver already advertises an ACPI match table, so the ACPI subsystem enumerates the real AMDI0104 device and binds it to the driver. The manually created device therefore serves no purpose: it never binds and lingers as an unbound platform device, wasting memory and cluttering the device tree. Drop the manual platform_device_register_simple() and the device that tracked it, and rely solely on ACPI enumeration. The CPU feature gating in amd_hfi_init() is retained so the driver is only registered on supported hardware. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Reported-by: Sashiko <sashiko-bot@kernel.org> Link: https://patch.msgid.link/20260921170411.1149960-4-mario.limonciello@amd.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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions