fsl_i2c: Wait for STOP condition to propagate
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Thu, 17 Sep 2009 09:07:15 +0000 (11:07 +0200)
committerHeiko Schocher <hs@denx.de>
Mon, 28 Sep 2009 05:35:52 +0000 (07:35 +0200)
commit21f4cbb77299788e2b06c9b0f48cf20a5ab00d4a
treee7668f7ea1f9b9872801f93967c5f4b81aaad8d7
parent984f10baac8ef6032df52f135943d6b0bc96f724
fsl_i2c: Wait for STOP condition to propagate

After issuing a STOP one must wait until the STOP has completed
on the bus before doing something new to the controller.

Also add an extra read of SR as the manual mentions doing that
is a good idea.

Remove surplus write of CR just before a write, isn't required and
could potentially disturb the I2C bus.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
drivers/i2c/fsl_i2c.c