diff options
author | Diana Z <dzigterman@chromium.org> | 2021-12-14 15:48:17 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-16 17:56:20 +0000 |
commit | 51da72512a68c5dee507c9cf659f1234ff788f3a (patch) | |
tree | 4605dfb9edc11348b6534be732faeda2e6f3cad9 /common | |
parent | 694f4345c537a6f628e746fbde25dfb2ae421b5b (diff) | |
download | chrome-ec-51da72512a68c5dee507c9cf659f1234ff788f3a.tar.gz |
Zephyr: Allow big endian flag
The flag for big endian i2c is handled in the upper layers of the
i2c_controller code, so it should be fine to silently ignore this flag
in the zephyr i2c logic.
BRANCH=None
BUG=b:195137794
TEST=zmake testall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ic7e532a2890d526684fc47aca2e561a73ae90f10
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3340222
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/i2c_controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/i2c_controller.c b/common/i2c_controller.c index 90d8a8da80..a99952943e 100644 --- a/common/i2c_controller.c +++ b/common/i2c_controller.c @@ -272,8 +272,8 @@ int i2c_xfer_unlocked(const int port, num_msgs++; } - - if (no_pec_af & ~I2C_ADDR_MASK) + /* Big endian flag is used in wrappers for this call */ + if (no_pec_af & ~(I2C_ADDR_MASK | I2C_FLAG_BIG_ENDIAN)) ccprintf("Ignoring flags from i2c addr_flags: %04x", no_pec_af); |