]> err.no Git - linux-2.6/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)
commit7d054817b780e664bed6701b2aa637718e1905b7
treeb6487bf6475c023485f33958410f7714d63f8c3a
parent494dbb64dc5b369cc28542f4c4d634e57b0d7f18
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