fix unreliable it87 detection (config reg. is 0x00, not 0x40)

ticket 758.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1273 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2001-12-19 19:29:31 +00:00
1 parent 683482a66d
commit a94b5074fd
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -18,6 +18,7 @@ ask CVS about it:
-----------------------------------------------------------------------------
2.6.3 (2001????)
File sensors.conf.eg: Un-ignore it87 in8, temp3, fan3
Library: Add PCF8591 and W83697HF support; fix w83* fan_min computes
Module i2c-piix4: Check for uninitialized base address
Module fscscy: implement min/max for voltages and fans
@@ -25,10 +26,9 @@ ask CVS about it:
Module w83781d: Add W83697HF support
Program i2cdump: Add i2c block read capability
Program mkpatch.pl: Add support for fscscy, add more help entries
Program sensors: Add PCF8591 and W83697HF support;
add it87 in8 and temp3 labels
Program sensors: Add PCF8591 and W83697HF support
Program sensors-detect: Add several Nvidia chips, add PCF8591,
fix Via 686a detection
fix Via686a and it87 detection
2.6.2 (20011118)
+3 -3
View File
@@ -2181,7 +2181,7 @@ sub via686a_isa_detect
# $_[2]: Address
# Returns: undef if not detected, (7) if detected.
# Registers used:
# 0x40: Configuration
# 0x00: Configuration
# 0x48: Full I2C Address
# 0x58: Mfr ID
# Note that this function is always called through a closure, so the
@@ -2191,7 +2191,7 @@ sub ite_detect
my $reg;
my ($chip,$file,$addr) = @_;
return unless i2c_smbus_read_byte_data($file,0x48) == $addr;
return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00;
return unless (i2c_smbus_read_byte_data($file,0x00) & 0x80) == 0x00;
return unless i2c_smbus_read_byte_data($file,0x58) == 0x90;
return (7);
}
@@ -2214,7 +2214,7 @@ sub ite_isa_detect
return;
}
my $readproc = sub { isa_read_byte $addr + 5, $addr + 6, @_ };
return unless (&$readproc(0x40) & 0x80) == 0x00;
return unless (&$readproc(0x00) & 0x80) == 0x00;
my $reg = &$readproc(0x58);
return unless ($reg == 0x90);
return 7;