diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-01-29 17:29:31 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-01-29 17:29:31 +0000 |
commit | ffaecc25b227281d46a1db7e86e04e9174ba4017 (patch) | |
tree | 5002d2365e683d5d7423b459c529d5046d9e314b /sys/dev/ipmi.c | |
parent | 8853b2988adaf32bd6f8bbbe4b4b5f27d93bcce6 (diff) |
Disable iic whenever ipmi is enabled. This fixes boxes like Sun x4200 that
freak out when more than one device driver touch the i2c devices.
Reported by: Srebrenko Sehic <ssehic at gmail dot com>
ok kettenis@
Diffstat (limited to 'sys/dev/ipmi.c')
-rw-r--r-- | sys/dev/ipmi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c index f82fdd3d3c5..fc5dc6ba467 100644 --- a/sys/dev/ipmi.c +++ b/sys/dev/ipmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmi.c,v 1.33 2006/01/19 17:08:39 grange Exp $ */ +/* $OpenBSD: ipmi.c,v 1.34 2006/01/29 17:29:29 marco Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave @@ -59,6 +59,7 @@ struct ipmi_sensor { int ipmi_nintr; int ipmi_dbg = 0; int ipmi_poll = 1; +int ipmi_enabled = 0; #define SENSOR_REFRESH_RATE (10 * hz) @@ -1750,6 +1751,9 @@ ipmi_attach(struct device *parent, struct device *self, void *aux) printf(" irq %d", ia->iaa_if_irq); printf("\n"); + /* setup flag to exclude iic */ + ipmi_enabled = 1; + /* Setup Watchdog timer */ sc->sc_wdog_period = 0; wdog_register(sc, ipmi_watchdog); |