summaryrefslogtreecommitdiff
path: root/common/ioexpander.c
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2021-10-22 18:32:23 -0700
committerCommit Bot <commit-bot@chromium.org>2021-10-27 04:00:52 +0000
commit029dc9a3593524404c07b51f5930798155b6b5a6 (patch)
treee1b0e86237f7a45bc2b743dae1ca042afa59e498 /common/ioexpander.c
parent66bf7ab150a66fbef557ef39dfb5a2d913e9de35 (diff)
downloadchrome-ec-029dc9a3593524404c07b51f5930798155b6b5a6.tar.gz
IOEX: Fix clobbering of initial flag values
Do not clobber initial io-expander flag values set in board files. BUG=b:203907721 BRANCH=none TEST=ServoV4p1 flags are not clobbered and IO-Expanders are working Signed-off-by: Sam Hurst <shurst@google.org> Change-Id: If5d899de5071d8a8e7594de10e2efd4dfb83e838 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3239014 Tested-by: Sam Hurst <shurst@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Brian J. Nemec <bnemec@chromium.org> Commit-Queue: Sam Hurst <shurst@google.com>
Diffstat (limited to 'common/ioexpander.c')
-rw-r--r--common/ioexpander.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/ioexpander.c b/common/ioexpander.c
index d30ed7ad9b..06ca94b8bc 100644
--- a/common/ioexpander.c
+++ b/common/ioexpander.c
@@ -192,7 +192,8 @@ int ioex_init(int ioex)
}
}
- ioex_config[ioex].flags = IOEX_FLAGS_INITIALIZED;
+ ioex_config[ioex].flags &= ~IOEX_FLAGS_DEFAULT_INIT_DISABLED;
+ ioex_config[ioex].flags |= IOEX_FLAGS_INITIALIZED;
return EC_SUCCESS;
}