OSDN Git Service

pinctrl: qcom: spmi-gpio: Update GPIO EN_CTL when setting pin config
authorFenglin Wu <fenglinw@codeaurora.org>
Tue, 12 Sep 2017 00:32:46 +0000 (08:32 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Oct 2017 08:23:35 +0000 (10:23 +0200)
commit6cb74f444364c2f05ef21e84b22c82ebcd116131
tree72bed2cfe24908fdfcac6eba532e47f46f91f82f
parent2a7893c8b5318063b126a97b5524db3a247a719a
pinctrl: qcom: spmi-gpio: Update GPIO EN_CTL when setting pin config

GPIO is expected to be disabled iff PIN_CONFIG_BIAS_HIGH_IMPEDANCE is
configured. Update is_enabled flag in config_set() so that it can
reflect GPIO status correctly. Also modify EN_CTL register based on
is_enabled flag in config_set() to configure the GPIO properly.

Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c