Changeset 4059

Show
Ignore:
Timestamp:
06/23/06 20:39:51 (2 years ago)
Author:
khali
Message:

i2c-i801: Fix block transaction poll loops

Two of the three poll loops have the poll and sleep swapped,
causing an extra sleep to occur after the polled condition is
fulfilled. In practice, this doubles the amount of sleep time for
every block transaction.

Files:

Legend:

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

    r4055 r4059  
    1717  Module i2c-i801: Disable PEC mode after every transaction (2.6 backport) 
    1818                   Add ICH8 support (2.6 backport) 
     19                   Fix block transaction poll loops (2.6 backport) 
    1920  Module i2c-nforce2: Add nForce4 MCP51, MCP55 support (2.6 backport) 
    2021  Module i2c-piix4: Add ServerWorks HT-1000 support (2.6 backport) 
  • lm-sensors/trunk/kernel/busses/i2c-i801.c

    r3304 r4059  
    394394                timeout = 0; 
    395395                do { 
     396                        i2c_delay(1); 
    396397                        temp = inb_p(SMBHSTSTS); 
    397                         i2c_delay(1); 
    398398                } 
    399399                    while ((!(temp & 0x80)) 
     
    458458                timeout = 0; 
    459459                do { 
     460                        i2c_delay(1); 
    460461                        temp = inb_p(SMBHSTSTS); 
    461                         i2c_delay(1); 
    462462                } while ((!(temp & 0x02)) 
    463463                           && (timeout++ < MAX_TIMEOUT));