Changeset 1821

Show
Ignore:
Timestamp:
06/28/03 21:27:17 (11 years ago)
Author:
mds
Message:

clear correct bits in config word

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/hotplug/p4b_smbus.c

    r1503 r1821  
    103103/*  
    104104 * Checks whether SMBus is enabled and turns it on in case they are not.  
    105  * It's done by clearing Bit 8 and 4 in i801 config space F2h, PCI-Device 0x8086:0x2440(ICH2)/0x24c0(ICH4) 
     105 * It's done by clearing Bit 8 and 3 in i801 config space F2h, PCI-Device 0x8086:0x2440(ICH2)/0x24c0(ICH4) 
    106106 */ 
    107107static int 
     
    112112        DBG("i801smbus: i801smbus config byte reading 0x%X.\n", val); 
    113113        if (val & 0x008) { 
    114                 pci_write_config_word(dev, 0xF2, val & 0x77); 
     114                pci_write_config_word(dev, 0xF2, val & 0xfef7); 
    115115                pci_read_config_word(dev, 0xF2, &val); 
    116116                if(val & 0x008)