This patch tweaks i2c-i801.c so that the driver always sets the SMBAUXCTL
register (which enables/disables PEC) explicitly before each transaction.
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
                return -1;
        }
 
-       if (hwpec)
-               outb_p(1, SMBAUXCTL);   /* enable hardware PEC */
+       outb_p(hwpec, SMBAUXCTL);       /* enable/disable hardware PEC */
 
        if(block)
                ret = i801_block_transaction(data, read_write, size, hwpec);
                ret = i801_transaction();
        }
 
-       if (hwpec)
-               outb_p(0, SMBAUXCTL);   /* disable hardware PEC */
-
        if(block)
                return ret;
        if(ret)