Show
Ignore:
Timestamp:
10/22/08 18:25:11 (4 years ago)
Author:
khali
Message:

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.)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/lm78.c

    r4651 r5371  
    330330                    && (lm78_read_value(new_client, LM78_REG_I2C_ADDR) != 
    331331                        address)) goto ERROR1; 
     332                /* Explicitly prevent the misdetection of Winbond chips */ 
     333                i = lm78_read_value(new_client, 0x4f); 
     334                if (i == 0xa3 || i == 0x5c) 
     335                        goto ERROR1; 
    332336        } 
    333337