mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
Fix MAX6657, MAX6658 and MAX6659 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2815 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -3110,7 +3110,7 @@ sub lm83_detect
|
||||
# $_[2]: Address
|
||||
# Returns: undef if not detected, 4, 6 or 8 if detected.
|
||||
# The Maxim chips have a low confidence value (4)
|
||||
# because the die revision codes are not known.
|
||||
# because they don't have a die revision register.
|
||||
# Registers used:
|
||||
# 0x03: Configuration
|
||||
# 0x04: Conversion rate
|
||||
@@ -3153,9 +3153,11 @@ sub lm90_detect
|
||||
return 8 if ($cid & 0xf0) == 0x40; # ADM1032
|
||||
}
|
||||
if ($chip == 4) {
|
||||
return if ($conf & 0x1f) != 0;
|
||||
return if ($conf & 0x1f) != ($mid & 0x0f); # No low nibble,
|
||||
# returns previous low nibble
|
||||
return if $rate > 0x09;
|
||||
return if $mid != 0x4d; # Maxim
|
||||
return if $cid != 0x4d; # No register, returns previous value
|
||||
return 4;
|
||||
}
|
||||
if ($chip == 5) {
|
||||
|
Reference in New Issue
Block a user