From: Jean Delvare Date: Tue, 1 May 2007 21:26:33 +0000 (+0200) Subject: i2c-pxa: Clean transaction stop X-Git-Tag: v2.6.22-rc1~1081^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d054817b780e664bed6701b2aa637718e1905b7;p=pandora-kernel.git 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 Cc: Lennert Buytenhek Cc: Nicolas Pitre --- Reading git-diff-tree failed