Always set the SMBAUXCTL register (which enables/disables PEC)

explicitly before each transaction. Backport from Linux 2.6, original
patch from Mark M. Hoffman.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3221 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2006-01-07 15:30:18 +00:00
1 parent db773f6c88
commit c6d1ade5fe
1 file changed
+1 -5
+1 -5
View File
@@ -528,8 +528,7 @@ static s32 i801_access(struct i2c_adapter * adap, u16 addr,
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);
@@ -538,9 +537,6 @@ static s32 i801_access(struct i2c_adapter * adap, u16 addr,
ret = i801_transaction();
}
if (hwpec)
outb_p(0, SMBAUXCTL); /* disable hardware PEC */
if(block)
return ret;
if(ret)