]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: htc-egpio: read output value from cache
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 13 Nov 2016 10:50:22 +0000 (11:50 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 13 Nov 2016 10:50:22 +0000 (11:50 +0100)
commit24b35ed9a84ab1e7ad96c67434841120ca7fbf36
tree54ce2241c790ed49839ff41f4cfa71bfd0d81a2e
parent9298539c0472c1bd7516c62d444e561493e3f26c
gpio: htc-egpio: read output value from cache

When the hardware is in output mode, reading the value from the
hardware is not giving the correct value back. Instead read the
value from the cache so we get the right value.

Suggested-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-htc-egpio.c