]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: imx: check busy bit when START/STOP
authorRichard Zhao <linuxzsc@gmail.com>
Sat, 17 Oct 2009 09:46:22 +0000 (17:46 +0800)
committerBen Dooks <ben-linux@fluff.org>
Mon, 2 Nov 2009 23:28:46 +0000 (23:28 +0000)
commit87b79a5935819efd05537bd51e0b2b5f39e45114
tree4f2e927b301a9b89d6fb35e524c90b37331129b2
parent2eb8b05f1bad924f5879f2676664e38bbb8188b0
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