From: Sonic Zhang Date: Tue, 28 May 2013 10:41:09 +0000 (+0800) Subject: i2c: bfin-twi: Read and write the FIFO in loop X-Git-Tag: v3.11-rc1~87^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8419c8debdc600b71fb89f0ffad80a6f436d80fe;p=pandora-kernel.git i2c: bfin-twi: Read and write the FIFO in loop TWI transfer interrupts may be lost when system is heavily handling other interrupts, while current transfer handler depends on each accurate interrupt and misses some data in this case. Because there are 2 2-byte FIFOs in blackfin TWI controller, the occurrence of the data loss can be reduced by reading till the RX FIFO is empty and writing till the TX FIFO is full. Reported-by: Bob Maris Signed-off-by: Sonic Zhang Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed