From d4d214e32c9331327ac2749bd69e56fc3da6998b Mon Sep 17 00:00:00 2001 From: David Hubbard Date: Sun, 24 Jun 2007 11:17:09 +0200 Subject: [PATCH] --- yaml --- r: 61810 b: refs/heads/master c: 475ef85512900dcb87435e13656c1f5e724de379 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/hwmon/w83627ehf.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 3089218f530e..44aae3e1cca4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1ea6dd3840e5a22924d78299fee018c82e425d80 +refs/heads/master: 475ef85512900dcb87435e13656c1f5e724de379 diff --git a/trunk/drivers/hwmon/w83627ehf.c b/trunk/drivers/hwmon/w83627ehf.c index 2157c3424de1..e615b8378fc3 100644 --- a/trunk/drivers/hwmon/w83627ehf.c +++ b/trunk/drivers/hwmon/w83627ehf.c @@ -1387,14 +1387,19 @@ static int __init w83627ehf_find(int sioaddr, unsigned short *addr, | superio_inb(sioaddr, SIO_REG_ADDR + 1); *addr = val & IOREGION_ALIGNMENT; if (*addr == 0) { + printk(KERN_ERR DRVNAME ": Refusing to enable a Super-I/O " + "device with a base I/O port 0.\n"); superio_exit(sioaddr); return -ENODEV; } /* Activate logical device if needed */ val = superio_inb(sioaddr, SIO_REG_ENABLE); - if (!(val & 0x01)) + if (!(val & 0x01)) { + printk(KERN_WARNING DRVNAME ": Forcibly enabling Super-I/O. " + "Sensor is probably unusable.\n"); superio_outb(sioaddr, SIO_REG_ENABLE, val | 0x01); + } superio_exit(sioaddr); pr_info(DRVNAME ": Found %s chip at %#x\n", sio_name, *addr);