summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Zhang <rui.zhang@intel.com>2016-06-15 08:47:51 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-06-15 08:49:15 +0200
commit3f86a6359afc3f573ddbb9e423b44b282dec939c (patch)
treef3793b9e0dae8349bfcde805b44458495c6cfcc6
parent107cdd2d69d10a3338cb0f863364b44985eaaf64 (diff)
downloadlinux-3f86a6359afc3f573ddbb9e423b44b282dec939c.tar.gz
linux-3f86a6359afc3f573ddbb9e423b44b282dec939c.tar.bz2
linux-3f86a6359afc3f573ddbb9e423b44b282dec939c.zip
gpio: acpi: add _DEP support for Acer One 10
On Acer One 10, the ACPI battery driver can not be probed because it depends on the GPIO controller as well as the I2C controller to work, Device (BATC) { Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */) ... Name (_DEP, Package (0x03) // _DEP: Dependencies { I2C1, GPO2, GPO0 }) ... } The I2C dependency also exists on other platforms and has been fixed by commit 40e7fcb19293 ("ACPI: Add _DEP support to fix battery issue on Asus T100TA"), this patch resolves the GPIO dependency for Acer One 10. Link:https://bugzilla.kernel.org/show_bug.cgi?id=115191 Tested-by: Stace A. Zacharov <stace75@gmail.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpiolib-acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index 2dc52585e3f2..af514618d7fb 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -836,6 +836,7 @@ void acpi_gpiochip_add(struct gpio_chip *chip)
}
acpi_gpiochip_request_regions(acpi_gpio);
+ acpi_walk_dep_device_list(handle);
}
void acpi_gpiochip_remove(struct gpio_chip *chip)