diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-04-16 13:40:17 -0700 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-04-22 17:04:11 +0200 |
commit | a73d2e30b46787d478275db36c19222020e29dc5 (patch) | |
tree | 3d6a0115518e9ca8b569791a51df127ae2fcfc07 /drivers/pinctrl/pinctrl-single.c | |
parent | 4c5fba3d4ae3a7aae2c4a56d4a234aa556b7caca (diff) |
pinctrl: as3722: fix handling of GPIO invert bit
The AS3722_GPIO_INV bit will always be blindly overwritten by
as3722_pinctrl_gpio_set_direction() and will be ignored when
setting the value of the GPIO in as3722_gpio_set() since the
enable_gpio_invert flag is never set. This will cause an
initially inverted GPIO to toggle when requested as an output,
which could be problematic if, for example, the GPIO controls
a critical regulator.
Instead of setting up the enable_gpio_invert flag, just leave
the invert bit alone and check it before setting the GPIO value.
Cc: <stable@vger.kernel.org> # v3.14+
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-single.c')
0 files changed, 0 insertions, 0 deletions