diff --git a/CHANGES b/CHANGES index 8a1149fd..dd57a07c 100644 --- a/CHANGES +++ b/CHANGES @@ -48,6 +48,7 @@ SVN HEAD No longer depend on i2cdetect Add SMSC SCH5317 detection Drop detection of most non-sensors I2C chips + Fix ADM1022 detection 2.10.3 (20070319) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 37d2b63a..467e89be 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -4469,7 +4469,9 @@ sub adm1022_detect return unless ($chip == 0 and $reg == 0x41) or ($chip == 1 and $reg == 0x49) or ($chip == 2 and $reg == 0x41); - return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; + $reg = i2c_smbus_read_byte_data($file,0x40); + return if ($reg & 0x10); # Soft Reset always reads 0 + return if ($chip != 0 and ($reg & 0x80)); # Reserved on THMC50 and ADM1028 $reg = i2c_smbus_read_byte_data($file, 0x3f) & 0xf0; return unless ($chip == 0 and $reg == 0xc0) or ($chip == 1 and $reg == 0xc0) or