i2c: mpc: Wait for STOP to hit the bus
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Thu, 30 Aug 2012 10:40:04 +0000 (12:40 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Fri, 14 Sep 2012 14:01:04 +0000 (16:01 +0200)
commit0c25aefa35c2fb5592895615f77d9f6fa36a849d
treee9c05ae3468a10cb356b474ba0f661f750eda45f
parent2bdbfa9c4a14f0015d1e189b17175a989d7c2a40
i2c: mpc: Wait for STOP to hit the bus

mpc_i2c_stop() only initiates STOP but does not wait for it to
hit the I2C bus. This is a problem when using I2C devices which
uses fairly long clock stretching just before STOP if you also
have an i2c-mux which may switch to another bus before STOP has
been processed.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-mpc.c