From a94b5074fdda06f0b3e0b8a8d01db57d0b9ba432 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Wed, 19 Dec 2001 19:29:31 +0000 Subject: [PATCH] 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 --- CHANGES | 6 +++--- prog/detect/sensors-detect | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index f727667d..bfa3bc57 100644 --- a/CHANGES +++ b/CHANGES @@ -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) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 3f947bc7..4c77baed 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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;