mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
driver: kionix: Increase init delay to 20ms
Port changes cl/289037 to generic kionix driver. Form cl/289037 Sometimes the accelerometer doesn't initialize nicely. Increase the timeout to 20ms. BUG=chrome-os-partner:39269,chrome-os-partner:63146 TEST=buildall BRANCH=veyron,cave Change-Id: I4e4d8951fc821b8b33daa53e6c3b8da5ffa7acde Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/446132 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> (cherry picked from commit 11c00e1a4116bb0ac387c0264053e66e41a5ec92) Reviewed-on: https://chromium-review.googlesource.com/446699
This commit is contained in:
committed by
chrome-bot
parent
6b52c9cf58
commit
eb85cc2101
@@ -511,7 +511,7 @@ static int init(const struct motion_sensor_t *s)
|
||||
break;
|
||||
|
||||
/* Check for timeout. */
|
||||
if (timeout++ > 5) {
|
||||
if (timeout++ > 20) {
|
||||
ret = EC_ERROR_TIMEOUT;
|
||||
mutex_unlock(s->mutex);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user