Changeset 4561

Show
Ignore:
Timestamp:
07/06/07 11:52:32 (7 years ago)
Author:
khali
Message:

Fix ADM1022 detection.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4558 r4561  
    5353                          Add SMSC SCH5317 detection 
    5454                          Drop detection of most non-sensors I2C chips 
     55                          Fix ADM1022 detection 
    5556 
    5657 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r4560 r4561  
    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