i2c: imx: check busy bit when START/STOP
commit43309f3b521302bb66c4c9e66704dd3675e4d725
authorRichard Zhao <linuxzsc@gmail.com>
Sat, 17 Oct 2009 09:46:22 +0000 (17 17:46 +0800)
committerBen Dooks <ben-linux@fluff.org>
Mon, 2 Nov 2009 23:28:46 +0000 (2 23:28 +0000)
tree4f2e927b301a9b89d6fb35e524c90b37331129b2
parent1836d95928a0f41ada0cbb2a6c4e46b027db9491
i2c: imx: check busy bit when START/STOP

The controller can't do anything else before it actually generates START/STOP.
So we check busy bit to make sure START/STOP is successfully finished.

If we don't check busy bit, START/STOP may fail on some fast CPUs.

Signed-off-by: Richard Zhao <linuxzsc@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-imx.c