From: Sachin Surendran Date: Sun, 25 Nov 2012 22:20:01 +0000 (+1300) Subject: i2c-cpm: Fix to takeback i2c bus master-ship after a collision X-Git-Tag: v3.11-rc1~94^2~2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a16d8aa4726a944ffc1616689ae34ff6a902faba;p=pandora-kernel.git i2c-cpm: Fix to takeback i2c bus master-ship after a collision In case of collision on i2c bus the controller which lost bus mastership stays as a slave for all subsequent transfers. This results in the i2c controller never writing to the bus for future transactions, resulting in i2c transfer timeouts. This fix checks for a collision on last I2C transaction and sets the I2COM_MASTER bit for the new transaction. Signed-off-by: Sachin Surendran Signed-off-by: Scott Wood --- Reading git-diff-tree failed