Commit 2e3e13f8 authored by Mark M. Hoffman's avatar Mark M. Hoffman Committed by Greg Kroah-Hartman

[PATCH] i2c: i2c-i801 explicitly enables/disables PEC

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: default avatarMark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 46f25dff
...@@ -468,8 +468,7 @@ static s32 i801_access(struct i2c_adapter * adap, u16 addr, ...@@ -468,8 +468,7 @@ static s32 i801_access(struct i2c_adapter * adap, u16 addr,
return -1; return -1;
} }
if (hwpec) outb_p(hwpec, SMBAUXCTL); /* enable/disable hardware PEC */
outb_p(1, SMBAUXCTL); /* enable hardware PEC */
if(block) if(block)
ret = i801_block_transaction(data, read_write, size, hwpec); ret = i801_block_transaction(data, read_write, size, hwpec);
...@@ -478,9 +477,6 @@ static s32 i801_access(struct i2c_adapter * adap, u16 addr, ...@@ -478,9 +477,6 @@ static s32 i801_access(struct i2c_adapter * adap, u16 addr,
ret = i801_transaction(); ret = i801_transaction();
} }
if (hwpec)
outb_p(0, SMBAUXCTL); /* disable hardware PEC */
if(block) if(block)
return ret; return ret;
if(ret) if(ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment