[PATCH] i2c-amd8111 bug fix (compare i2c-nforce2 bug fix)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

a similar bug for the send/receive byte SMBus transfer as in the i2c-nforce2 
bus driver is also present in the i2c-amd8111 driver. The attached small 
patch corrects it. I have no board with AMD-8111 and therefore cannot test 
it, but the patch brings the AMD-8111 bus driver in line with the ACPI 2.0 
spec chapter 13.9, to which is is compliant according to the AMD-8111 data 
sheet (AMD document #24674). Can anybody with an AMD-8000 chip set based 
mainboard confirm the fix?

Hans-Frieder

--- lm_sensors2.orig/kernel/busses/i2c-amd8111.c        2003-08-03 
18:09:00.000000000 +0200
+++ lm_sensors2/kernel/busses/i2c-amd8111.c     2003-11-30 15:45:42.000000000 
+0100
@@ -198,7 +198,7 @@
 
		case I2C_SMBUS_BYTE:
 			if (read_write == I2C_SMBUS_WRITE)
-				amd_ec_write(smbus, AMD_SMB_DATA, data->byte);
+				amd_ec_write(smbus, AMD_SMB_CMD, command);
 			protocol |= AMD_SMB_PRTCL_BYTE;
 		break;


-- 
--
Hans-Frieder Vogt                 e-mail: hfvogt at arcor.de



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux