diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-06-25 10:57:28 -0600 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2014-07-03 06:29:31 +0200 |
commit | 981b14f01ae79f85eae3dc6873456abd08de2d86 (patch) | |
tree | ee675d0e7b349bd964afd4d66a31bb77c66cf3dc /doc/README.qemu-mips | |
parent | 68049a082b8aedf09e769e61885e000e598bb516 (diff) | |
download | u-boot-imx-981b14f01ae79f85eae3dc6873456abd08de2d86.zip u-boot-imx-981b14f01ae79f85eae3dc6873456abd08de2d86.tar.gz u-boot-imx-981b14f01ae79f85eae3dc6873456abd08de2d86.tar.bz2 |
i2c: tegra: write clean data to TX FIFO
The Tegra I2C controller's TX FIFO contains 32-bit words. If the final
FIFO entry of a transaction contains fewer than 4 bytes, the driver
currently fills the unused FIFO bytes with uninitialized data. This can
be confusing when reading back the FIFO content for debugging purposes.
Solve this by explicitly initializing the variable containing FIFO data
before filling it (partially) with data. With this change,
send_recv_packets()'s loop's if (is_write) code mirrors the else (i.e.
read) branch.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Yen Lin <yelin@nvidia.com>
Diffstat (limited to 'doc/README.qemu-mips')
0 files changed, 0 insertions, 0 deletions