Changeset 5371

Show
Ignore:
Timestamp:
10/22/08 18:25:11 (3 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.)

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5370 r5371  
    1313  Module i2c-piix4: Minor cleanups (2.6 backport) 
    1414  Module i2c-viapro: Add VX800/VX820 support (2.6 backport) 
     15  Module lm78: Prevent misdetection of Winbond chips 
    1516  Module lm90: Don't spam the kernel log (2.6 backport) 
    1617  Program pwmconfig: Fix MINSTOP and MINSTART test functions (#2340) 
  • 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