]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: vt8500: Ensure value reg is updated when setting direction
authorAlexey Charkov <alchark@gmail.com>
Tue, 29 Apr 2014 19:42:00 +0000 (23:42 +0400)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 22 May 2014 21:46:10 +0000 (23:46 +0200)
commit0519e3f3c556c6134230c2389edcbbb0c4f4ef6f
tree78087b25ad0a6f22eeaab36bccba00d473011ebb
parent1f47e5110cb07c984f10c5d5fc78240a01d02fb1
pinctrl: vt8500: Ensure value reg is updated when setting direction

Current code only touches the direction register when setting direction
to output, which breaks logic like

echo high > /sys/class/gpio/gpio0/direction

which is expected to also set the value. This patch also adds a call
to update the value register when setting direction to output.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/vt8500/pinctrl-wmt.c