pinctrl: msm: Configure interrupts as input and gpio mode
authorStephen Boyd <swboyd@chromium.org>
Thu, 16 Aug 2018 20:06:48 +0000 (13:06 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 07:42:45 +0000 (09:42 +0200)
commitfe2731211e784bff5a738631e5fd48041524239f
tree2a67d9643a6e784426214815e52971efa8cfbd7b
parent1de7ddb3a15c649fd15568d2056af295930656f8
pinctrl: msm: Configure interrupts as input and gpio mode

When requesting a gpio as an interrupt, we should make sure to mux the
pin as the GPIO function and configure it to be an input so that various
functions or output signals don't affect the interrupt state of the pin.
So far, we've relied on pinmux configurations in DT to handle this, but
let's explicitly configure this in the code so that DT implementers
don't have to get this part right.

Cc: Doug Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c