]> git.ipfire.org Git - people/ms/u-boot.git/commit
i2c: at91_i2c: Wait for TXRDY after sending the first byte
authorAlan Ott <alan@softiron.com>
Wed, 29 Nov 2017 03:25:23 +0000 (22:25 -0500)
committerHeiko Schocher <hs@denx.de>
Thu, 7 Dec 2017 08:28:58 +0000 (09:28 +0100)
commit0afbb0e1c01382f4bcd728ecbd4e49a928dbbccb
treede853ec28e771d202d429b69049ca38c6d5e2d2e
parent50a69095cbcaa0e17aebc3ec6a502017f6fed55a
i2c: at91_i2c: Wait for TXRDY after sending the first byte

The driver must wait for TXRDY after each byte is pushed into
the i2c FIFO before pushing the next byte. Previously this was
not done for the first byte, causing a race condition with zeros
sometimes being sent for the next byte (which is typically the
first actual data byte).

Signed-off-by: Alan Ott <alan@softiron.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/at91_i2c.c