The LM78 detection is relatively weak, and sometimes recent Winbond

chips can be misdetected as an LM78. We have had repeated reports of
this happening. (Backport from Linux 2.6.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5371 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-10-22 16:25:11 +00:00
1 parent 8e413501da
commit a8acdd0d88
2 files changed
+5

No files matched your search

+4
View File
@@ -329,6 +329,10 @@ static int lm78_detect(struct i2c_adapter *adapter, int address,
if (!is_isa
&& (lm78_read_value(new_client, LM78_REG_I2C_ADDR) !=
address)) goto ERROR1;
/* Explicitly prevent the misdetection of Winbond chips */
i = lm78_read_value(new_client, 0x4f);
if (i == 0xa3 || i == 0x5c)
goto ERROR1;
}
/* Determine the chip type. */