summaryrefslogtreecommitdiff
path: root/chip/stm32/dma.c
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-03-06 11:33:32 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-03-08 02:31:26 +0000
commit0e3ff013cc7814705137d373218ea7bfa0f94c2c (patch)
treef176dd51a290ac0b325673a7c26e510a10fb164e /chip/stm32/dma.c
parentc42bf9940282bd9d92187b69a81b6ff2f012c1e2 (diff)
downloadchrome-ec-0e3ff013cc7814705137d373218ea7bfa0f94c2c.tar.gz
rambi: fix potential bug in accelerometer init
Fixed a potential bug in accelerometer initialization that could result in failing to write the desired accelereometer settings. Before writing the desired settings, we first send a command to perform a software reset. While waiting for software reset to complete, if we have an I2C error, then we could interpret this as software reset complete and go on to write the accelerometer settings before the reset has actually completed. BUG=none BRANCH=rambi TEST=Code inspection. I haven't actually seen this bug, I just saw the potential for it. Change-Id: I78757106291ffbaeff27f94aa6f74c9cea81e0b9 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/189064 (cherry picked from commit 521a99e38428fcfe928616f4932b5d1167e2f6cb) Reviewed-on: https://chromium-review.googlesource.com/189233 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/stm32/dma.c')
0 files changed, 0 insertions, 0 deletions