pinctrl: cherryview: Configure HiZ pins to be input when requested as GPIOs
commit2479c7300ed943d62c88cd928ddccb4677c71ad4
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 29 Jan 2015 10:44:48 +0000 (29 12:44 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 4 Feb 2015 08:59:26 +0000 (4 09:59 +0100)
treef0f090e196cf64b2ff1cdbed92aa63fa9036abc1
parent34027ca2bbc6043fea8fc5c4a82670518b6be7df
pinctrl: cherryview: Configure HiZ pins to be input when requested as GPIOs

If the pin is in HiZ mode when it is requested as GPIO its value cannot be
read (it always returns 0). In order to cope with the Linux GPIO subsystem
where we do not have such state at all, turn the pin to be input instead.

Reported-by: Jerome Blin <jerome.blin@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-cherryview.c