Prevent misdetection of W83627DHG (and more generally, Winbond chips)

on I2C as LM78.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5333 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-09-10 07:28:17 +00:00
1 parent bc0b859f04
commit 869a6b7f81
2 files changed
+6

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ SVN-HEAD
Add SMSC EMC2700LPC support
Add ITE IT8720 support
Add Texas Instruments TMP411 support
Prevent misdetection of W83627DHG on I2C as LM78
2.10.7 (20080701)
Library: Don't choke on unrecognized devices, part 2
+5
View File
@@ -3547,6 +3547,11 @@ sub lm78_detect
return unless ($chip == 0 and ($reg == 0x00 or $reg == 0x20)) or
($chip == 1 and $reg == 0x40) or
($chip == 2 and ($reg & 0xfe) == 0xc0);
# Explicitly prevent misdetection of Winbond chips
$reg = i2c_smbus_read_byte_data($file, 0x4f);
return if $reg == 0xa3 || $reg == 0x5c;
return (6);
}