commit | ea572d853eb03c6ac2021c21aae60891b5f92655 | [log] [tgz] |
---|---|---|
author | Troy Kisky <troy.kisky@boundarydevices.com> | Thu Jul 19 08:18:05 2012 +0000 |
committer | Heiko Schocher <hs@denx.de> | Tue Jul 31 07:42:20 2012 +0200 |
tree | f62bf5c68b7ac5a03d17b0378be72e15056b92f1 | |
parent | cea60b0c6ce77a8dffd7177fca31fa7610aa6923 [diff] |
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>