diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2017-10-26 09:28:50 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-19 17:04:52 -0700 |
commit | c577880b797367eb4503243284c3341b7615a7e6 (patch) | |
tree | b3bca671d6ca34cbe454d53755ff7a41b1429472 /driver | |
parent | 0e224bf94f238aebea81b0c200778a1c3095095f (diff) | |
download | chrome-ec-c577880b797367eb4503243284c3341b7615a7e6.tar.gz |
Revert "driver: kionix: Add checking whoami value at initialization."
This reverts commit 1d8fcd4fabfed67d8304b3c5ad418cf6f5ae1878.
It looks like KXCJ9 may not return proper WHOAMI after powerup
but before reset.
BUG=b:67865186
BRANCH=eve
TEST=compile
Change-Id: Iceaaf3b2a45d920e08db587e1308cec0379e68cf
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/753967
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/accel_kionix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accel_kionix.c b/driver/accel_kionix.c index 06dc8564b8..b3a1cde3ab 100644 --- a/driver/accel_kionix.c +++ b/driver/accel_kionix.c @@ -521,7 +521,7 @@ static int init(const struct motion_sensor_t *s) msleep(1); /* Read WHO_AM_I to be sure the device has booted */ ret = raw_read8(s->port, s->addr, reg, &val); - if (ret == EC_SUCCESS && val == KIONIX_WHO_AM_I_VAL(V(s))) + if (ret == EC_SUCCESS) break; /* Check for timeout. */ |