]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c8cf32b4a6ed59c2bdd252554f2eb7bf8115c85
tree2a67d9643a6e784426214815e52971efa8cfbd7b
parent914b71efa05926584491d15d44271396a548cf5b
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