From 5bdbb3744f115ffc5c1ba0ea8265c166c1e5fbf1 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 6 Dec 2003 21:48:32 +0000 Subject: [PATCH] Display a message if a Force-CPCI735-like config register is found. Should help debugging the problem. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2140 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/busses/i2c-piix4.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/kernel/busses/i2c-piix4.c b/kernel/busses/i2c-piix4.c index da7c4920..b0f487f6 100644 --- a/kernel/busses/i2c-piix4.c +++ b/kernel/busses/i2c-piix4.c @@ -187,10 +187,16 @@ static int piix4_setup(struct pci_dev *PIIX4_dev, const struct pci_device_id *id /* Some BIOS will set up the chipset incorrectly and leave a register in an undefined state (causing I2C to act very strangely). */ - if (fix_hstcfg && (temp & 0x02)) { - printk("Worked around buggy BIOS (I2C)\n"); - temp &= 0xfd; - pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp); + if (temp & 0x02) { + if (fix_hstcfg) { + printk(KERN_INFO "i2c-piix4.o: Working around buggy BIOS (I2C)\n"); + temp &= 0xfd; + pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp); + } else { + printk(KERN_INFO "i2c-piix4.o: Unusual config register value " + "(0x%02x)\n", temp); + printk(KERN_INFO "i2c-piix4.o: Please report!\n"); + } } /* If force_addr is set, we program the new address here. Just to make