From: Chris David Date: Sat, 13 Oct 2007 21:56:33 +0000 (+0200) Subject: i2c-au1550: Fix a misused register problem X-Git-Tag: v2.6.24-rc1~1339 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a202707e71ff16d5e3a92f40eeaa41f3099dd8c5;p=pandora-kernel.git i2c-au1550: Fix a misused register problem Fix a "mis-used register" problem on the AMD MIPS Alchemy au1550 I2C interface. In summary, the programmable serial controller seems to hang the kernel when I send a single 'address' byte on the I2C bus. The patch essentially uses the PSC_SMBSTAT register's TE (transmit FIFO empty) bit to check when the transmit FIFO is empty, instead of using the PSC_SMBEVNT register's TU (transmit underflow) bit. Using the TE bit fixed the hang problem. Signed-off-by: Chris David Acked-by: Ralf Baechle Signed-off-by: Jean Delvare --- Reading git-diff-tree failed