Changeset 3221

Show
Ignore:
Timestamp:
01/07/06 16:30:18 (3 years ago)
Author:
khali
Message:

Always set the SMBAUXCTL register (which enables/disables PEC)
explicitly before each transaction. Backport from Linux 2.6, original
patch from Mark M. Hoffman.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/kernel/busses/i2c-i801.c

    r3178 r3221  
    529529        } 
    530530 
    531         if (hwpec) 
    532                 outb_p(1, SMBAUXCTL);   /* enable hardware PEC */ 
     531        outb_p(hwpec, SMBAUXCTL);       /* enable/disable hardware PEC */ 
    533532 
    534533        if(block) 
     
    538537                ret = i801_transaction(); 
    539538        } 
    540  
    541         if (hwpec) 
    542                 outb_p(0, SMBAUXCTL);   /* disable hardware PEC */ 
    543539 
    544540        if(block)