[i2c] Fix AMD MIPS Alchemy au1550 I2C interface
Ralf Baechle
ralf at linux-mips.org
Wed Oct 3 12:40:29 CEST 2007
On Tue, Oct 02, 2007 at 08:32:05PM -0700, Chris David wrote:
> Please CC me on replies.
>
> Here is a trivial patch to fix a "mis-used register" problem on the
> AMD MIPS Alchemy au1550 I2C interface.
>
> In summary, The programmable serial controller seem to hang the kernel
> when I sent a single an '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.
>
> I tested this on kernel 2.6.16, and confirmed the patch updates the
> 2.6.22 kernel correctly. Jean Delvare requested that I post this
> patch to this i2c list, in the hopes that someone else can test it.
>
> Again, please CC me on replies.
Well, I can't find anything wrong with this patch ... so let's assume it's
good ...
Ralf
More information about the i2c
mailing list