From: Shinya Kuribayashi Date: Fri, 6 Nov 2009 12:51:36 +0000 (+0900) Subject: i2c-designware: Skip RX_FULL and TX_EMPTY bits on tx abort errors X-Git-Tag: v2.6.33-rc1~339^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=597fe310f16d8246eec856326aa497bfa1b5bfa3;p=pandora-kernel.git i2c-designware: Skip RX_FULL and TX_EMPTY bits on tx abort errors Suppose TX_ABRT occurs in the middle of processing i2c_msg msgs[], and a STOP condition has already been generated on the bus. In this case, subsequent i2c_dw_xfer_msg() might initiate a new and unnecessary I2C transaction, which we'd have to avoid. Furthermore, anytime TX_ABRT is set, the contents of tx/rx buffers are flushed, so we don't have to process RX_FULL and TX_EMPTY. Disable interrupts, and skip them. Signed-off-by: Shinya Kuribayashi Signed-off-by: Ben Dooks --- Reading git-diff-tree failed