]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sunxi: Fix gpio_set behaviour
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 25 Jul 2013 10:41:16 +0000 (12:41 +0200)
committerLinus Walleij <linus.walleij@stericsson.com>
Wed, 7 Aug 2013 19:57:13 +0000 (21:57 +0200)
commit1720d3ab12f4eb74eb0f1461071a69409efc419d
tree9e622723aabd03e9f3292f436d4d1e3b538a9ff9
parent234d9cacaad9dbae2bb4083510eb17a4310dbbca
pinctrl: sunxi: Fix gpio_set behaviour

The current gpio_set function is ignoring the previous value set in the
GPIO value register, which leads in erasing the values already set for
the other GPIOs in the same bank when setting the value of a given GPIO.

Add the usual read/mask/write pattern to fix this brown paper bag bug.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
drivers/pinctrl/pinctrl-sunxi.c