Changeset 3177 for lm-sensors/trunk/kernel/busses/i2c-i801.c
- Timestamp:
- 11/05/05 18:11:47 (8 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/busses/i2c-i801.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-i801.c
r3176 r3177 146 146 147 147 static int i801_transaction(void); 148 static int i801_block_transaction(union i2c_smbus_data *data, 149 char read_write, int command);148 static int i801_block_transaction(union i2c_smbus_data *data, char read_write, 149 int command, int hwpec); 150 150 151 151 static unsigned short i801_smba; … … 299 299 /* All-inclusive block transaction function */ 300 300 static int i801_block_transaction(union i2c_smbus_data *data, char read_write, 301 int command )301 int command, int hwpec) 302 302 { 303 303 int i, len; … … 447 447 448 448 #ifdef HAVE_PEC 449 if (isich4 && command == I2C_SMBUS_BLOCK_DATA_PEC) {449 if (hwpec && command == I2C_SMBUS_BLOCK_DATA) { 450 450 /* wait for INTR bit as advised by Intel */ 451 451 timeout = 0; … … 519 519 case I2C_SMBUS_BLOCK_DATA: 520 520 case I2C_SMBUS_I2C_BLOCK_DATA: 521 #ifdef HAVE_PEC522 case I2C_SMBUS_BLOCK_DATA_PEC:523 if(hwpec && size == I2C_SMBUS_BLOCK_DATA)524 size = I2C_SMBUS_BLOCK_DATA_PEC;525 #endif526 521 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), 527 522 SMBHSTADD); … … 543 538 #endif 544 539 if(block) 545 ret = i801_block_transaction(data, read_write, size );540 ret = i801_block_transaction(data, read_write, size, hwpec); 546 541 else { 547 542 outb_p(xact | ENABLE_INT9, SMBHSTCNT);
