From: Shinya Kuribayashi Date: Fri, 6 Nov 2009 12:51:00 +0000 (+0900) Subject: i2c-designware: Disable TX_EMPTY when all i2c_msg msgs has been processed X-Git-Tag: v2.6.33-rc1~339^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69151e532c97f983b498ea03e20b1598a5487318;p=pandora-kernel.git i2c-designware: Disable TX_EMPTY when all i2c_msg msgs has been processed Currently we disable TX_EMPTY interrupt when buf_len is zero, but this is wrong. (buf_len == 0) means that all transmit data in the current i2c_msg message has been sent out, but that doesn't necessarily mean all i2c_msg messages have been processed. TX_EMPTY interrupt is used as the driving force of DW I2C transactions, so we need to keep it enabled as long as i2c_msg messages are available. Signed-off-by: Shinya Kuribayashi Signed-off-by: Ben Dooks --- Reading git-diff-tree failed