Changeset 2541

Show
Ignore:
Timestamp:
05/16/04 18:29:19 (9 years ago)
Author:
khali
Message:

Unconditional prevention of 24RF08 corruption.

Location:
lm-sensors/trunk/kernel/chips
Files:
2 modified

Legend:

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

    r2445 r2541  
    230230        new_client->flags = 0; 
    231231 
     232        /* prevent 24RF08 corruption (just in case) */ 
     233        i2c_smbus_write_quick(new_client, 0); 
     234 
    232235        /* Now, we do the remaining detection. */ 
    233236        if (checksum) { 
    234237                int cs = 0; 
    235                 /* prevent 24RF08 corruption (just in case) */ 
    236                 i2c_smbus_write_quick(new_client, 0); 
    237238                for (i = 0; i < 0x80; i++) 
    238239                        cs += i2c_smbus_read_byte_data(new_client, i); 
  • lm-sensors/trunk/kernel/chips/eeprom.c

    r2445 r2541  
    209209        new_client->flags = 0; 
    210210 
     211        /* prevent 24RF08 corruption */ 
     212        i2c_smbus_write_quick(new_client, 0); 
     213 
    211214        /* Now, we do the remaining detection. It is not there, unless you force 
    212215           the checksum to work out. */ 
    213216        if (checksum) { 
    214217                int cs = 0; 
    215                 /* prevent 24RF08 corruption */ 
    216                 i2c_smbus_write_quick(new_client, 0); 
    217218                for (i = 0; i <= 0x3e; i++) 
    218219                        cs += i2c_smbus_read_byte_data(new_client, i);