Changeset 4263

Show
Ignore:
Timestamp:
12/15/06 10:25:45 (2 years ago)
Author:
khali
Message:

f71805f: Fix the device address decoding
The lowest 3 bits are ignored, and the chip decodes all 8 addresses,
not only the 2 it needs. This is a backport from Linux 2.6.20.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r4262 r4263  
    1515  Man page sensors.1: Update (option -c) and clean up 
    1616  Module i2c-i801: Add ICH9 support 
     17  Module f71805f: Fix the device address decoding (2.6 backport) 
    1718  Module icspll: Delete. It was useless and dangerous. 
    1819  Program eepromer: Fix loads of warnings 
  • lm-sensors/trunk/kernel/chips/f71805f.c

    r3215 r4263  
    100100 */ 
    101101 
    102 #define REGION_LENGTH           2 
    103 #define ADDR_REG_OFFSET         0 
    104 #define DATA_REG_OFFSET         1 
     102#define REGION_LENGTH           8 
     103#define ADDR_REG_OFFSET         5 
     104#define DATA_REG_OFFSET         6 
    105105 
    106106/* 
     
    723723                goto exit; 
    724724        } 
     725        *address &= ~(REGION_LENGTH - 1);       /* Ignore 3 LSB */ 
    725726 
    726727        err = 0;