Messages in this thread Patch in this message | | | Subject | Re: [PATCH] i2c driver fixes for 2.6.0 | Date | Tue, 30 Dec 2003 14:06:10 -0800 | From | Greg KH <> |
| |
ChangeSet 1.1496.20.2, 2003/12/19 10:47:09-08:00, mds@paradyne.com
[PATCH] I2C: fix amd756 byte writes
This fixes byte writes (used by the eeprom driver) in the i2c-amd756 driver. It is similar to recent fixes for the i2c-amd8111 and i2c-nforce2 drivers.
Tested by me.
drivers/i2c/busses/i2c-amd756.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
diff -Nru a/drivers/i2c/busses/i2c-amd756.c b/drivers/i2c/busses/i2c-amd756.c --- a/drivers/i2c/busses/i2c-amd756.c Tue Dec 30 12:29:49 2003 +++ b/drivers/i2c/busses/i2c-amd756.c Tue Dec 30 12:29:49 2003 @@ -213,9 +213,8 @@ case I2C_SMBUS_BYTE: outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), SMB_HOST_ADDRESS); - /* TODO: Why only during write? */ if (read_write == I2C_SMBUS_WRITE) - outb_p(command, SMB_HOST_COMMAND); + outb_p(command, SMB_HOST_DATA); size = AMD756_BYTE; break; case I2C_SMBUS_BYTE_DATA: - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |