Changeset 1399 for lm-sensors/trunk/kernel/busses/i2c-i801.c
- Timestamp:
- 06/16/02 21:42:16 (11 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/busses/i2c-i801.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-i801.c
r1395 r1399 27 27 82801BA 2443 28 28 82801CA/CAM 2483 29 82801DB 24C3 29 82801DB 24C3 (32 byte buffer and HW PEC not yet supported) 30 30 31 31 This driver supports several versions of Intel's I/O Controller Hubs (ICH). … … 547 547 #ifdef HAVE_PEC 548 548 if(isich4 && command == I2C_SMBUS_BLOCK_DATA_PEC) { 549 /* wait for INTR bit as advised by Intel */ 549 550 timeout = 0; 550 551 do { 551 552 temp = inb_p(SMBHSTSTS); 552 553 i801_do_pause(1); 553 } 554 while ((!(temp & 0x80)) 554 } while ((!(temp & 0x02)) 555 555 && (timeout++ < MAX_TIMEOUT)); 556 556 557 /* If the SMBus is still busy, we give up */558 557 if (timeout >= MAX_TIMEOUT) { 559 #ifdef DEBUG560 558 printk(KERN_DEBUG "i2c-i801.o: PEC Timeout!\n"); 561 #endif562 559 } 563 560 if(read_write == I2C_SMBUS_READ) { … … 565 562 } 566 563 outb_p(temp, SMBHSTSTS); 567 printk("i2c-i801.o: sts = 0x%02x len = %d PEC = 0x%02x\n", temp, len, data->block[len + 1]);568 564 } 569 565 #endif
