diff options
author | Ye Li <ye.li@nxp.com> | 2017-08-14 02:22:15 -0500 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2017-11-03 02:37:09 +0800 |
commit | c8dac8ea2f07c4fb358b824365a1d345bab017fc (patch) | |
tree | 0b6b4733099f54150b0586296fbda60bf44b5117 /Makefile | |
parent | 87c0e35493d98e7d3dd284793c074e66df8c1bf3 (diff) |
MLK-16192 lpi2c: Fix bus stop problem in xfer
In xfer function, both bus_i2c_read and bus_i2c_write will
send a STOP command. This causes a problem when reading register
data from i2c device.
Generally two operations comprise the register data reading:
1. Write the register address to i2c device.
START | chip_addr | W | ACK | register_addr | ACK |
2. Read the Data from i2c device.
START | chip_addr | R | ACK | DATA | NACK | STOP
The STOP command should happen at the end of the transfer, otherwise
we will always get data from register address 0
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions