summaryrefslogtreecommitdiff
path: root/prog/hotplug
diff options
context:
space:
mode:
authorMark D. Studebaker <mdsxyz123@yahoo.com>2003-06-28 19:27:17 +0000
committerMark D. Studebaker <mdsxyz123@yahoo.com>2003-06-28 19:27:17 +0000
commit67540c7d07fe0b5b932b59fbe9eb1a901e7da8d0 (patch)
tree714ffe49b541381efc7043a07c61ad2cf591e567 /prog/hotplug
parent19fc08212db45c9ab06b6c95e6061fa64239189c (diff)
downloadlm-sensors-git-67540c7d07fe0b5b932b59fbe9eb1a901e7da8d0.tar.gz
clear correct bits in config word
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1821 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'prog/hotplug')
-rw-r--r--prog/hotplug/p4b_smbus.c4
1 files 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)
{