]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: dw: Return output value when direction is out
authorSean Anderson <seanga2@gmail.com>
Mon, 14 Sep 2020 15:02:01 +0000 (11:02 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 8 Oct 2020 15:42:36 +0000 (11:42 -0400)
commitb4167aa15ac13cbbd3948463d9d5f97fb98d2709
treebc613fa2ad93e3a9b213b8aedb54671193ed1bfe
parent18dbb7b335c2b4d14f2d72d77bdd60c6e5ebd25f
gpio: dw: Return output value when direction is out

dm_gpio_ops.get_value can be called when the gpio is either input or
output. The current dw code always returns the input value, which is
invalid if the direction is set to out.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
drivers/gpio/dwapb_gpio.c