From 67540c7d07fe0b5b932b59fbe9eb1a901e7da8d0 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sat, 28 Jun 2003 19:27:17 +0000 Subject: [PATCH] clear correct bits in config word git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1821 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/hotplug/p4b_smbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prog/hotplug/p4b_smbus.c b/prog/hotplug/p4b_smbus.c index be4b9556..959a6a39 100644 --- a/prog/hotplug/p4b_smbus.c +++ b/prog/hotplug/p4b_smbus.c @@ -102,7 +102,7 @@ static unsigned long i801smbus_lock_flags = 0; /* * Checks whether SMBus is enabled and turns it on in case they are not. - * It's done by clearing Bit 8 and 4 in i801 config space F2h, PCI-Device 0x8086:0x2440(ICH2)/0x24c0(ICH4) + * It's done by clearing Bit 8 and 3 in i801 config space F2h, PCI-Device 0x8086:0x2440(ICH2)/0x24c0(ICH4) */ static int i801smbus_enable(struct pci_dev *dev){ @@ -111,7 +111,7 @@ i801smbus_enable(struct pci_dev *dev){ pci_read_config_word(dev, 0xF2, &val); DBG("i801smbus: i801smbus config byte reading 0x%X.\n", val); if (val & 0x008) { - pci_write_config_word(dev, 0xF2, val & 0x77); + pci_write_config_word(dev, 0xF2, val & 0xfef7); pci_read_config_word(dev, 0xF2, &val); if(val & 0x008) {