OSDN Git Service

ACPI / EC: Call acpi_walk_dep_device_list() after installing EC opregion handler
authorLan Tianyu <tianyu.lan@intel.com>
Wed, 1 Apr 2015 01:47:18 +0000 (09:47 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 22 Jun 2015 06:41:16 +0000 (14:41 +0800)
commita2ba78168aaaca724003d0dd150f1526611fa037
tree08497a2a383afbdb5774f77ccaeafdc620ca05c5
parentcdb0c5ebc31759c4e2e2f34676217cbeee69aef1
ACPI / EC: Call acpi_walk_dep_device_list() after installing EC opregion handler

On some machines(E,G Mircosoft surface 3), ACPI battery depends on
the EC operation region and it has _DEP method which contains EC.
Current code doesn't support such devices whose dep_unmet will be
not be decreased after EC opregion handler being installed. This
blocks battery device to be attached with its driver. This patch
is to fix the issue.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=90161
Reported-and-tested-by: Lompik <lompik@voila.fr>
Tested-by: Valentin Lab <valentin.lab_bugzilla.kernel.org@kalysto.org>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c