From: qipeng.zha Date: Tue, 10 Mar 2015 17:15:38 +0000 (+0800) Subject: gpiolib: translate pin number in GPIO ACPI callbacks X-Git-Tag: omap-for-v4.2/o2_dc~239^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4de60970abf9f49737f51ec6e7a1e3bcf6d36742;p=pandora-kernel.git 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 Acked-by: Mika Westerberg Signed-off-by: Linus Walleij --- Reading git-diff-tree failed