]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mxs: Use set and clear capabilities of the gpio controller
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 29 Apr 2013 14:07:18 +0000 (16:07 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 20 May 2013 18:14:43 +0000 (20:14 +0200)
commit31ce71fc93a63b31133643a8479b9961202b5154
tree4e392e7ca7898bebbc75f2fe34cc3630cd6b2ffd
parent50947e61247cfa08f61e18379315d4b5301d6b38
gpio: mxs: Use set and clear capabilities of the gpio controller

The current driver doesn't use the set and clear registers found on the
mxs gpio controller.

This leads the generic gpio controller to be using some internal value
to avoid looking up the value stored in the registers, making it behave
pretty much like a cache.

This raises some coherency problem when a gpio is not modified by the
gpio controller, while it can easily be fixed by using the set and clear
registers.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxs.c