Searched hist:df7b34f4c3d23f25b408d4c0d7f528092becce63 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi.c | df7b34f4c3d23f25b408d4c0d7f528092becce63 Thu Jul 25 10:41:16 UTC 2013 Maxime Ripard <maxime.ripard@free-electrons.com> 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>
|