pinctrl: qcom: spmi-mpp: Fixes related to enable handling
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Thu, 18 Jun 2015 06:47:26 +0000 (23:47 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jul 2015 07:39:04 +0000 (09:39 +0200)
commit7682b3740dd7e3039ec9885b423f7e68f0dc24d0
tree1bb3b374f1c9d829039eb6d3fa85c7dc7f78dbab
parentba5f94cd566ac562c9374729baab156886759946
pinctrl: qcom: spmi-mpp: Fixes related to enable handling

There's currently no way to re-enable a mpp block once you've entered a state
that disables the state, this patch makes it possible to leave the
bias-high-impedance state.

Also read the enable state from the hardware on probe.

With this in place the is_enabled variable is accurately tracking the state of
the hardware and we can use that for the debug output as well.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-spmi-mpp.c