]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mxc_i2c: clear i2sr before waiting for bit
authorTroy Kisky <troy.kisky@boundarydevices.com>
Thu, 19 Jul 2012 08:18:05 +0000 (08:18 +0000)
committerHeiko Schocher <hs@denx.de>
Tue, 31 Jul 2012 05:42:20 +0000 (07:42 +0200)
commitea572d853eb03c6ac2021c21aae60891b5f92655
treef62bf5c68b7ac5a03d17b0378be72e15056b92f1
parentcea60b0c6ce77a8dffd7177fca31fa7610aa6923
mxc_i2c: clear i2sr before waiting for bit

Let's clear the sr register before waiting for
bit to be set, instead of clearing it after
hardware sets it. No real operational difference here,
but allows combining of i2c_imx_trx_complete and
i2c_imx_bus_busy in later patches.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/i2c/mxc_i2c.c