Hi Simon,

On 1/15/21 3:04 PM, Simon Glass wrote:
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 <s...@chromium.org>
---

  drivers/gpio/sandbox.c | 24 ++++++++++++++++++++----
  1 file changed, 20 insertions(+), 4 deletions(-)


Reviewed-by: Patrick Delaunay <patrick.delau...@foss.st.com>

Thanks

Patrick

Reply via email to