commit | 92de81c36d2451d9e8f18fd383b052a52d5de709 | [log] [tgz] |
---|---|---|
author | Maureen Helm <maureen.helm@nxp.com> | Fri Apr 29 16:17:03 2016 -0500 |
committer | Kumar Gala <kumar.gala@linaro.org> | Wed Sep 07 14:40:20 2016 +0000 |
tree | fbd8bc697f419d86d624a2d19ba13b291d4afad8 | |
parent | e4067638b74760b26b9eb17660db9d49011d9321 [diff] |
i2c: Fix restart flag in burst read The i2c_burst_read function transfers two messages to the I2C device. The first message writes the internal address of the device, the second message then reads bytes. A repeated start (restart) is needed to change the direction from write to read, but the restart flag should be set in the second message rather than the first. Change-Id: I7d48de2f4866e3b514f689f41ce5d28eba90c39f Signed-off-by: Maureen Helm <maureen.helm@nxp.com>