All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c-amd8111 bug fix (compare i2c-nforce2 bug fix)
@ 2005-05-19  6:24 Hans-Frieder Vogt
  2005-05-19  6:24 ` Jean Delvare
  0 siblings, 1 reply; 2+ messages in thread
From: Hans-Frieder Vogt @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

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@arcor.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] i2c-amd8111 bug fix (compare i2c-nforce2 bug fix)
  2005-05-19  6:24 [PATCH] i2c-amd8111 bug fix (compare i2c-nforce2 bug fix) Hans-Frieder Vogt
@ 2005-05-19  6:24 ` Jean Delvare
  0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

> 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?

Not sure any of us does. You could try sending your patch to Vojtech
Pavlik (vojtech at suse dot cz). Since he is the original driver author
and sent various patches for it since, I'd guess he has the hardware to
test it.

Thanks for the patch, will apply (unless Pavlik isn't happy with it).

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-19  6:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:24 [PATCH] i2c-amd8111 bug fix (compare i2c-nforce2 bug fix) Hans-Frieder Vogt
2005-05-19  6:24 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.