Changeset 4562

Show
Ignore:
Timestamp:
07/06/07 11:54:10 (6 years ago)
Author:
khali
Message:

Fix ADM1022 detection.

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r4539 r4562  
    4949                          Add SMSC SCH5317 detection 
    5050                          Drop detection of most non-sensors I2C chips 
     51                          Fix ADM1022 detection 
    5152 
    5253 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r4555 r4562  
    44704470                ($chip == 1 and $reg == 0x49) or 
    44714471                ($chip == 2 and $reg == 0x41); 
    4472   return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; 
     4472  $reg = i2c_smbus_read_byte_data($file,0x40); 
     4473  return if ($reg & 0x10);                      # Soft Reset always reads 0 
     4474  return if ($chip != 0 and ($reg & 0x80));     # Reserved on THMC50 and ADM1028 
    44734475  $reg = i2c_smbus_read_byte_data($file, 0x3f) & 0xf0; 
    44744476  return unless ($chip == 0 and $reg == 0xc0) or