Skip to content
Commit 5ec3cd68 authored by Jeremy Bettis's avatar Jeremy Bettis Committed by Christopher Friedt
Browse files

gpio_emul: Fix bug with input & output pins



Change gpio_emul_input_set_masked_pend to log when it returns an error.
Changed all calls to gpio_emul_input_set_masked* to check the return
value.

Changed the function gpio_emul_input_set_masked_pend to apply the mask
to the provided values and not return an error if there are excess
values. In almost every call to that function, the value wasn't being
limited to bits set in the mask, so they were failing if there was more
than one gpio configured for INPUT|OUTPUT with a value of 1.

Fixes #40646

Signed-off-by: default avatarJeremy Bettis <jbettis@google.com>
parent 77550d05
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment