Files
linux/drivers
Russell King 316a9a84db gpiolib: fix up emulated open drain outputs
commit 256efaea1f upstream.

gpiolib has a corner case with open drain outputs that are emulated.
When such outputs are outputting a logic 1, emulation will set the
hardware to input mode, which will cause gpiod_get_direction() to
report that it is in input mode. This is different from the behaviour
with a true open-drain output.

Unify the semantics here.

Cc: <stable@vger.kernel.org>
Suggested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-09 10:19:01 +01:00
..
2020-01-09 10:19:01 +01:00
2019-12-31 16:35:58 +01:00
2019-05-14 19:17:53 +02:00
2019-12-17 20:34:42 +01:00
2020-01-04 19:13:43 +01:00
2019-12-05 09:21:29 +01:00
2019-07-26 09:14:05 +02:00
2020-01-09 10:18:57 +01:00
2019-12-17 20:35:17 +01:00