]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: sandbox: Fully separate pin value from output value
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:22:01 +0000 (21:22 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 3 Mar 2021 20:38:58 +0000 (15:38 -0500)
commit0242aecb4c40060d532b907e581f1bbd4c9ba9af
treefaaa4aff503988a8b92201a18c751c25064850c0
parent1f212afc4cefa2ca16e51486523b1854746fda79
gpio: sandbox: Fully separate pin value from output value

At present we have the concept of a pin's external value. This is what
is used when getting the value of a pin. But we still set the
GPIOD_IS_OUT_ACTIVE flag when changing the value. This is not actually
correct, since if the pin changes from output to input, the external
value need not change. Adjust the logic for this difference.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/gpio/sandbox.c