Skip to contentSkip to conversation

amd756 byte writes

PATCH New Mark Studebaker 3 participants 3 messages May 19, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.
please apply.
mds
-------------- next part --------------

drivers/i2c/busses/i2c-amd756.c renamed from drivers/i2c/busses/i2c-amd756.c.orig +1 -2
@@ -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:
#1 lore raw

PATCH 1/1 amd756 byte writes

Added to my public collection, thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
Applied
#2 lore raw

PATCH 1/1 amd756 byte writes

In reply to Mark Studebaker
Quoted 6 lines · Mark Studebaker

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.
please apply.

Applied, thanks.

greg k-h