]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-pxa: Clean transaction stop
authorJean Delvare <khali@linux-fr.org>
Tue, 1 May 2007 21:26:33 +0000 (23:26 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 1 May 2007 21:26:33 +0000 (23:26 +0200)
commitb4180f39fc60926307fcc5fcec14c41951249762
treeb6487bf6475c023485f33958410f7714d63f8c3a
parentc06d33804de479edd97100442722ce797371d430
i2c-pxa: Clean transaction stop

It was reported to me that the i2c-pxa driver was not able to process
more that 50 transactions per second. Investigation revealed that the
I2C unit was busy for 20 ms after every transaction. The reason seems
to be that we forget to clear the STOP and ACKNACK bits at the end of
the transaction. According to the PXA27x developer's manual, we shall
do so.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Nicolas Pitre <nico@cam.org>
drivers/i2c/busses/i2c-pxa.c