PatchSet 147 Date: 2003/12/05 11:59:56 Log: Fix I2C protocol problem on MPC5200 Index: drivers/i2c/i2c-algo-mpc5xxx.c =================================================================== RCS file: /cvsroot/linuxppc_2_4_devel/drivers/i2c/i2c-algo-mpc5xxx.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- drivers/i2c/i2c-algo-mpc5xxx.c 3 Dec 2003 19:13:30 -0000 1.1 +++ drivers/i2c/i2c-algo-mpc5xxx.c 5 Dec 2003 11:59:56 -0000 1.2 @@ -210,6 +210,7 @@ int i; mpc5xxx_out(®s->mcr, 0, MPC5xxx_I2C_TX); + mpc5xxx_out(®s->mcr, 0, MPC5xxx_I2C_TXAK); for (i = 0; i < count; ++i) { @@ -233,7 +234,6 @@ mpc5xxx_out(®s->mcr, MPC5xxx_I2C_TXAK, MPC5xxx_I2C_TXAK); buf[rdcount++] = mpc5xxx_in(®s->mdr); - mpc5xxx_out(®s->mcr, 0, MPC5xxx_I2C_TXAK); if (wait_for_pin(algo_data, &status)) {