diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2015-03-31 21:47:18 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-04-01 20:21:41 -0400 |
commit | 1c832b3e85b6ac35e5f113fa4204eb725c54794e (patch) | |
tree | c111bfd737eb1c6537f9d29d5efe25994925d9b0 | |
parent | 770970f0b40a7c303765f0593acd4ceeb54831f7 (diff) |
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>
-rw-r--r-- | drivers/acpi/ec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index a362f20c6c8b..220d6406c9e9 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -1147,6 +1147,9 @@ static int acpi_ec_add(struct acpi_device *device) | |||
1147 | 1147 | ||
1148 | ret = ec_install_handlers(ec); | 1148 | ret = ec_install_handlers(ec); |
1149 | 1149 | ||
1150 | /* Reprobe devices depending on the EC */ | ||
1151 | acpi_walk_dep_device_list(ec->handle); | ||
1152 | |||
1150 | /* EC is fully operational, allow queries */ | 1153 | /* EC is fully operational, allow queries */ |
1151 | clear_bit(EC_FLAGS_QUERY_PENDING, &ec->flags); | 1154 | clear_bit(EC_FLAGS_QUERY_PENDING, &ec->flags); |
1152 | 1155 | ||