]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-algo-bit: Always send a stop condition before leaving
authorJean Delvare <khali@linux-fr.org>
Tue, 1 May 2007 21:26:28 +0000 (23:26 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 1 May 2007 21:26:28 +0000 (23:26 +0200)
commitcc5475dda72d761b8ca871a3959f2ba8adbeca86
tree369572a568a1162ed4ce7e3ef656f36e7e379a6b
parent25e8bbc0687aa07e34350fa8ac93b18d969de660
i2c-algo-bit: Always send a stop condition before leaving

The i2c-algo-bit driver doesn't behave well on read errors: it'll
bail out without even sending a stop condition on the bus, so the bus
will be stuck. So make sure that we always send a stop condition on
the bus before we leave. The best way to make sure is to always send
it at the end of function bit_xfer.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/algos/i2c-algo-bit.c