]> git.dujemihanovic.xyz Git - u-boot.git/commit
xilinx_xiic: Fix transfer initialisation
authorMelin Tomas <tomas.melin@vaisala.com>
Fri, 28 Jun 2019 12:08:40 +0000 (12:08 +0000)
committerHeiko Schocher <hs@denx.de>
Tue, 9 Jul 2019 05:02:11 +0000 (07:02 +0200)
commitd3826fb052af9e6df22abaefb1b0c7496e469f9e
treeb5dea82b58a7ef9ec570e53cbafa3ddbd9a9988d
parent5324e8ef6c3d6b6183b3aadeadeeb7822b4fd68a
xilinx_xiic: Fix transfer initialisation

Prior to starting a new transfer, conditionally wait for bus to not
be busy.

Reinitialise controller as otherwise operation is not stable.
For reference, see linux kernel
commit 9656eeebf3f1 ("i2c: Revert i2c: xiic: Do not reset controller before every transfer")

hs: Fixed DOS line endings
    added missing '\n'
    Fixed git commit description style

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