Changeset 2788

Show
Ignore:
Timestamp:
12/07/04 16:32:19 (9 years ago)
Author:
mds
Message:

fix lm93_read_block which was retrying even on success.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r2786 r2788  
    4646               Knierim) 
    4747               Fix compilation breaking C99-ism (Axel Thimm) 
     48               Fix block read retries 
    4849  Module pc87360: Support secondary Super-I/O address 
    4950  Module smsc47m1: Add support for 47M15x and 47M192 (fans only) 
    5051  Library: Add lm63 support 
    5152           Add lpc47b397 support 
     53  Programs *.init: Rename lockfile to match file name 
    5254  Programs i2cset, isaset: Written byte/word can be masked 
    5355  Program decode-vaio.pl: Find eeproms on non-0 i2c bus too 
  • lm-sensors/trunk/kernel/chips/lm93.c

    r2784 r2788  
    445445static void lm93_read_block(struct i2c_client *client, u8 fbn, u8 *values) 
    446446{ 
    447         int i, result; 
     447        int i, result=0; 
    448448 
    449449        for (i = 1; i <= MAX_RETRIES; i++) { 
     
    451451                        lm93_block_read_cmds[fbn].cmd, lm93_block_buffer); 
    452452 
    453                 if (result != lm93_block_read_cmds[fbn].len) { 
     453                if (result == lm93_block_read_cmds[fbn].len) { 
     454                        break; 
     455                } else { 
    454456                        printk(KERN_WARNING "lm93.o: block read data failed, " 
    455457                                "command 0x%02x.\n",