summaryrefslogtreecommitdiff
path: root/drivers/acpi/sbs.c
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2023-03-24 21:26:26 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-03-30 19:01:05 +0200
commit28f7b85895fce996c0f34827a7623ef6a031e4f3 (patch)
treeadecbc8627ce23b41fbcd37b556b19ae063f5a83 /drivers/acpi/sbs.c
parent197b6b60ae7bc51dd0814953c562833143b292aa (diff)
downloadlinux-28f7b85895fce996c0f34827a7623ef6a031e4f3.tar.gz
linux-28f7b85895fce996c0f34827a7623ef6a031e4f3.tar.bz2
linux-28f7b85895fce996c0f34827a7623ef6a031e4f3.zip
ACPI: EC: Limit explicit removal of query handlers to custom query handlers
According to the ACPI spec part 5.6.4.1.2, EC query handlers discovered thru ACPI should not be removed when a driver removes his custom query handler. On the Acer Travelmate 4002WLMi for example, such a query handler is used as a fallback to handle the EC SMBus alert when no driver is present. Change acpi_ec_remove_query_handlers() so that only custom query handlers are removed then remove_all is false. Query handlers discovered thru ACPI will still get removed when remove_all is true, which happens on device removal. Also add a simple check to ensure that acpi_ec_add_query_handler() is always called with either handle or func being set, since custom query handlers are detected based whether handlers->func is set or not. Tested on a Acer Travelmate 4002WLMi. Signed-off-by: Armin Wolf <W_Armin@gmx.de> [ rjw: Comment adjustment ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/sbs.c')
0 files changed, 0 insertions, 0 deletions