linux/drivers/platform
Rafael J. Wysocki e202748434 platform/x86: xo15-ebook: Fix wakeup source and GPE handling
[ Upstream commit b2fc2c6ebb ]

The device_set_wakeup_enable() call in ebook_switch_add() doesn't
actually do anything because power.can_wakeup is not set for ACPI
device objects.  Moreover, had it done anything, it would have
registered a wakeup source object that wouldn't have been used
going forward and that wakeup source would have been leaked after
driver removal because ebook_switch_remove() doesn't clean it up.
Accordingly, remove that call from ebook_switch_add().

Also prevent leaking an enabled ACPI GPE after removing the driver by
adding appropriate cleanup code to ebook_switch_remove().

Fixes: 89ca11771a ("OLPC XO-1.5 ebook switch driver")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/1966125.tdWV9SEqCh@rafael.j.wysocki
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-07-24 15:51:37 +02:00
..
chrome platform/chrome: cros_ec_lightbar: Fix response size initialization 2026-03-04 07:19:32 -05:00
goldfish platform/goldfish: Convert pipe tasklet to threaded irq 2021-01-27 14:57:06 +01:00
mellanox platform/mellanox: mlxbf-tmfifo: fix vring_desc.len assignment 2025-07-10 15:57:43 +02:00
mips platform: mips: cpu_hwmon: Disable driver on unsupported hardware 2024-08-19 05:45:20 +02:00
olpc platform/olpc: olpc-xo175-ec: Fix overflow error message to print inlen 2026-04-18 10:33:24 +02:00
surface platform/surface: surfacepro3_button: Drop wakeup source on remove 2026-06-01 17:35:35 +02:00
x86 platform/x86: xo15-ebook: Fix wakeup source and GPE handling 2026-07-24 15:51:37 +02:00
Kconfig platform: Add Surface platform directory 2020-10-27 12:51:03 +01:00
Makefile platform: Add Surface platform directory 2020-10-27 12:51:03 +01:00