]> git.baikalelectronics.ru Git - uboot.git/commit
xilinx_xiic: Fix fill tx fifo loop
authorMelin Tomas <tomas.melin@vaisala.com>
Fri, 28 Jun 2019 12:08:31 +0000 (12:08 +0000)
committerHeiko Schocher <hs@denx.de>
Tue, 9 Jul 2019 05:02:11 +0000 (07:02 +0200)
commit7e1eb636c38f3e30f7e5ad023da63bd996db435c
treec97dc451d41d4c8c7c9dc9a207f08a0218b5d03d
parent5de9200bc84e673025dfdd4516795774506858d5
xilinx_xiic: Fix fill tx fifo loop

Comparison should be against the actual message length, not loop index.

len is used for stopping while loop, pos is position in message.
stop should be sent when entire message is sent, not when
len and pos meet.

hs: fixed DOS line endings

Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
drivers/i2c/xilinx_xiic.c