]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "gpio: set up initial state from .get_direction()"
authorTimur Tabi <timur@codeaurora.org>
Wed, 20 Dec 2017 19:10:31 +0000 (13:10 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Dec 2017 12:03:41 +0000 (13:03 +0100)
commit14aa4adb3f860379b5ebcb9f5a8d08fc4b42b6f2
tree67d17b6bb67939f6e8af6770a98758e09c635817
parentdec41bdcccb9e3924cd4daacb73d6161d7463cf9
Revert "gpio: set up initial state from .get_direction()"

This reverts commit 32a34f9660bf09b03dd24019658fe1f0c668d03a.

We cannot blindly query the direction of all GPIOs when the pins are
first registered.  The get_direction callback normally triggers a
read/write to hardware, but we shouldn't be touching the hardware for
an individual GPIO until after it's been properly claimed.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c