mirror-linux/drivers/platform
Mark Pearson b3e127daca
platform/x86: thinkpad_acpi: Fix registration of tpacpi platform driver
The recent platform profile changes prevent the tpacpi platform driver
from registering. This error is seen in the kernel logs, and the
various tpacpi entries are not created:

[ 7550.642171] platform thinkpad_acpi: Resources present before probing

This happens because devm_platform_profile_register() is called before
tpacpi_pdev probes (thanks to Kurt Borja for identifying the root
cause).

For now revert back to the old platform_profile_register to fix the
issue. This is quick fix and will be re-implemented later as more
testing is needed for full solution.

Tested on X1 Carbon G12.

Fixes: 31658c916f ("platform/x86: thinkpad_acpi: Use devm_platform_profile_register()")
Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Kurt Borja <kuurtb@gmail.com>
Link: https://lore.kernel.org/r/20250211173620.16522-1-mpearson-lenovo@squebb.ca
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2025-02-12 13:49:37 +02:00
..
arm64 move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
chrome USB / Thunderbolt driver updates for 6.14-rc1 2025-01-27 16:29:16 -08:00
cznic leds: turris-omnia: Inform about missing LED gamma correction feature in the MCU driver 2024-12-12 18:37:36 +00:00
goldfish Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
loongarch ACPI: EC: Enable EC support on LoongArch by default 2024-12-18 20:23:59 +01:00
mellanox platform/mellanox: mlxreg-io: use sysfs_emit() instead of sprintf() 2025-01-20 14:13:22 +02:00
mips platform: mips: cpu_hwmon: Disable driver on unsupported hardware 2024-06-21 10:22:10 +02:00
olpc platform-drivers-x86 for v6.12-1 2024-09-19 09:16:04 +02:00
surface ACPI: platform_profile: Remove platform_profile_handler from exported symbols 2025-01-17 19:15:59 +02:00
x86 platform/x86: thinkpad_acpi: Fix registration of tpacpi platform driver 2025-02-12 13:49:37 +02:00
Kconfig platform: cznic: Add preliminary support for Turris Omnia MCU 2024-07-01 15:46:36 +02:00
Makefile platform-drivers-x86 for v6.11-1 2024-07-17 17:05:21 -07:00