diff options
author | qipeng.zha <qipeng.zha@intel.com> | 2015-03-11 01:15:38 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-03-19 09:22:53 +0100 |
commit | 4de60970abf9f49737f51ec6e7a1e3bcf6d36742 (patch) | |
tree | 5dc0acbc100f760505980951f3a90d6fc5f6cba8 /drivers/gpio/gpio-syscon.c | |
parent | 32c006a99799f6f3c759b77ba761c3a5981e34eb (diff) |
gpiolib: translate pin number in GPIO ACPI callbacks
If GPIO driver use pin mapping, need to translate pin number
between ACPI table and GPIO driver.
This issue is found on one platform with Cherryview gpio
controller, kernel is hang when executed _PS0 method of
one ACPI device, since without this translation, it access
invalid gpiodesc array.
Verified it works again with this patch.
Signed-off-by: qipeng.zha <qipeng.zha@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-syscon.c')
0 files changed, 0 insertions, 0 deletions