summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-single.c
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2014-04-16 20:40:17 (GMT)
committerLinus Walleij <linus.walleij@linaro.org>2014-04-22 15:04:11 (GMT)
commita73d2e30b46787d478275db36c19222020e29dc5 (patch)
tree3d6a0115518e9ca8b569791a51df127ae2fcfc07 /drivers/pinctrl/pinctrl-single.c
parent4c5fba3d4ae3a7aae2c4a56d4a234aa556b7caca (diff)
downloadlinux-a73d2e30b46787d478275db36c19222020e29dc5.tar.xz
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