From: Chew, Kean Ho Date: Thu, 6 Mar 2014 13:59:49 +0000 (+0800) Subject: pinctrl-baytrail: add function mux checking in gpio pin request X-Git-Tag: v3.15-rc1~150^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42bd00706ce95d74ad6ebcb8528ee1fbbb992f6a;p=pandora-kernel.git pinctrl-baytrail: add function mux checking in gpio pin request The requested gpio pin must has the func_pin_mux field set to GPIO function by BIOS/FW in advanced. Else, the gpio pin request would fail. This is to ensure that we do not expose any gpio pins which shall be used for alternate functions, for eg: wakeup pin, I/O interfaces for LPSS, etc. Signed-off-by: Chew, Kean Ho Signed-off-by: Chew, Chiau Ee Reviewed-by: Darren Hart Signed-off-by: Linus Walleij --- Reading git-diff-tree failed