mirror-linux/drivers/platform/x86
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
..
amd platform-drivers-x86 for v6.14-1 2025-01-24 07:18:39 -08:00
dell power supply and reset changes for the 6.14 series 2025-01-27 15:37:16 -08:00
hp Merge branch 'fixes' into 'for-next' 2025-01-21 14:00:38 +02:00
intel platform/x86: int3472: Call "reset" GPIO "enable" for INT347E 2025-02-11 19:15:00 +02:00
siemens platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
x86-android-tablets platform/x86: x86-android-tablets: Add Vexia EDU ATLA 10 EC battery driver 2024-12-10 15:29:40 +02:00
Kconfig ACPI: EC: make EC support compile-time conditional 2024-10-24 17:47:15 +02:00
Makefile
acer-wireless.c
acer-wmi.c platform/x86: acer-wmi: Fix initialization of last_non_turbo_profile 2025-01-20 14:16:59 +02:00
acerhdf.c
adv_swbutton.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
amilo-rfkill.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
apple-gmux.c
asus-laptop.c asus-laptop: prefer strscpy() over strcpy() 2024-10-10 13:30:46 +03:00
asus-nb-wmi.c Merge branch 'fixes' into 'for-next' 2025-01-21 14:00:38 +02:00
asus-tf103c-dock.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
asus-wireless.c
asus-wmi.c Merge branch 'fixes' into 'for-next' 2025-01-21 14:00:38 +02:00
asus-wmi.h Input: i8042 - Add support for platform filter contexts 2025-01-15 16:26:39 +02:00
barco-p50-gpio.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
classmate-laptop.c platform/x86: classmate-laptop: Replace snprintf in show functions with sysfs_emit 2024-10-21 13:40:12 +03:00
compal-laptop.c platform/x86: compal-laptop: use sysfs_emit() instead of sprintf() 2024-10-29 15:54:41 +02:00
dual_accel_detect.h
eeepc-laptop.c platform/x86: eeepc-laptop: use sysfs_emit() instead of sprintf() 2024-10-25 17:31:50 +03:00
eeepc-wmi.c
firmware_attributes_class.c platform/x86: firmware_attributes_class: Drop lifecycle functions 2025-01-09 13:40:27 +02:00
firmware_attributes_class.h platform/x86: firmware_attributes_class: Drop lifecycle functions 2025-01-09 13:40:27 +02:00
fujitsu-laptop.c fujitsu-laptop: replace strcpy -> strscpy 2024-12-02 19:07:28 +02:00
fujitsu-tablet.c
gigabyte-wmi.c
gpd-pocket-fan.c
hdaps.c
huawei-wmi.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
ibm_rtl.c
ideapad-laptop.c platform/x86: ideapad-laptop: pass a correct pointer to the driver data 2025-02-03 10:12:59 +02:00
ideapad-laptop.h
inspur_platform_profile.c ACPI: platform_profile: Remove platform_profile_handler from exported symbols 2025-01-17 19:15:59 +02:00
intel_ips.c
intel_ips.h
intel_scu_ipc.c platform/x86: intel_scu_ipc: Save a copy of the entire struct intel_scu_ipc_data 2024-10-22 11:34:09 +03:00
intel_scu_ipcutil.c platform/x86: intel_scu_ipc: Move intel_scu_ipc.h out of arch/x86/include/asm 2024-09-11 14:26:03 +02:00
intel_scu_pcidrv.c platform/x86: intel_scu_ipc: Move intel_scu_ipc.h out of arch/x86/include/asm 2024-09-11 14:26:03 +02:00
intel_scu_pltdrv.c platform/x86: intel_scu_ipc: Move intel_scu_ipc.h out of arch/x86/include/asm 2024-09-11 14:26:03 +02:00
intel_scu_wdt.c platform/x86: intel_scu_wdt: Move intel_scu_wdt.h to x86 subfolder 2024-09-11 14:26:08 +02:00
lenovo-wmi-camera.c platform/x86: lenovo-wmi-camera: Use SW_CAMERA_LENS_COVER instead of KEY_CAMERA_ACESS 2025-01-15 16:38:37 +02:00
lenovo-ymc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
lenovo-yoga-tab2-pro-1380-fastcharger.c platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race 2025-01-14 18:30:33 +02:00
lenovo-yogabook.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
lg-laptop.c platform/x86: wmi: Pass event data directly to legacy notify handlers 2024-09-05 17:21:59 +02:00
meegopad_anx7428.c
meraki-mx100.c
mlx-platform.c platform/x86: mlx-platform: call pci_dev_put() to balance the refcount 2024-12-17 18:21:45 +02:00
msi-ec.c
msi-ec.h
msi-laptop.c Input: i8042 - Add support for platform filter contexts 2025-01-15 16:26:39 +02:00
msi-wmi-platform.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
msi-wmi.c platform/x86: wmi: Pass event data directly to legacy notify handlers 2024-09-05 17:21:59 +02:00
mxm-wmi.c
nvidia-wmi-ec-backlight.c
p2sb.c p2sb: Do not scan and remove the P2SB device when it is unhidden 2024-12-10 16:24:51 +02:00
panasonic-laptop.c Input: i8042 - Add support for platform filter contexts 2025-01-15 16:26:39 +02:00
pcengines-apuv2.c
pmc_atom.c
quickstart.c platform/x86: quickstart: don't include 'pm_wakeup.h' directly 2024-12-02 11:05:54 +02:00
samsung-laptop.c platform/x86: samsung-laptop: Match MODULE_DESCRIPTION() to functionality 2024-12-02 18:41:08 +02:00
samsung-q10.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
sel3350-platform.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
serdev_helpers.h platform/x86: serdev_helpers: Add get_serdev_controller_from_parent() helper 2024-12-10 15:17:48 +02:00
serial-multi-instantiate.c ALSA: hda/tas2781: Add tas2781 hda SPI driver 2025-01-17 11:08:43 +01:00
silicom-platform.c
sony-laptop.c
system76_acpi.c
think-lmi.c platform/x86: think-lmi: Directly use firmware_attributes_class 2025-01-09 13:40:21 +02:00
think-lmi.h platform/x86: think-lmi: Multi-certificate support 2024-10-29 14:00:14 +02:00
thinkpad_acpi.c platform/x86: thinkpad_acpi: Fix registration of tpacpi platform driver 2025-02-12 13:49:37 +02:00
topstar-laptop.c
toshiba-wmi.c platform/x86: wmi: Pass event data directly to legacy notify handlers 2024-09-05 17:21:59 +02:00
toshiba_acpi.c Input: i8042 - Add support for platform filter contexts 2025-01-15 16:26:39 +02:00
toshiba_bluetooth.c
toshiba_haps.c
touchscreen_dmi.c platform/x86: touchscreen_dmi: Add info for SARY Tab 3 tablet 2024-12-11 15:58:35 +02:00
uv_sysfs.c
winmate-fm07-keys.c
wireless-hotkey.c
wmi-bmof.c platform/x86: wmi-bmof: Make use of .bin_size() callback 2024-12-17 13:13:10 +02:00
wmi.c platform/x86: wmi: Introduce to_wmi_driver() 2024-10-29 15:44:23 +02:00
xiaomi-wmi.c
xo1-rfkill.c platform/x86: Switch back to struct platform_driver::remove() 2024-10-17 12:39:32 +03:00
xo15-ebook.c