diff options
| author | mycroft <mycroft@NetBSD.org> | 2004-08-11 00:59:40 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 2004-08-11 00:59:40 +0000 |
| commit | 38ce741470f8d3f5d8564df6e2803ffef2487a28 (patch) | |
| tree | a298b66352573bb716c570ce14684a72592c098a | |
| parent | d978001d30589adb9c7d83d03089fdac4897ac8a (diff) | |
Clear IOIE in settype(), too. Not that we currently change modes without
powering down the socket, but...
| -rw-r--r-- | sys/dev/sbus/stp4020.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/sbus/stp4020.c b/sys/dev/sbus/stp4020.c index 336fe52018d..70964dcea35 100644 --- a/sys/dev/sbus/stp4020.c +++ b/sys/dev/sbus/stp4020.c @@ -1,4 +1,4 @@ -/* $NetBSD: stp4020.c,v 1.40 2004/08/11 00:58:08 mycroft Exp $ */ +/* $NetBSD: stp4020.c,v 1.41 2004/08/11 00:59:40 mycroft Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: stp4020.c,v 1.40 2004/08/11 00:58:08 mycroft Exp $"); +__KERNEL_RCSID(0, "$NetBSD: stp4020.c,v 1.41 2004/08/11 00:59:40 mycroft Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1028,7 +1028,8 @@ stp4020_chip_socket_settype(pch, type) * Enable socket I/O interrupts for IO cards. */ v = stp4020_rd_sockctl(h, STP4020_ICR0_IDX); - v &= ~(STP4020_ICR0_IOILVL|STP4020_ICR0_IFTYPE|STP4020_ICR0_SPKREN); + v &= ~(STP4020_ICR0_IOIE | STP4020_ICR0_IOILVL | STP4020_ICR0_IFTYPE | + STP4020_ICR0_SPKREN); if (type == PCMCIA_IFTYPE_IO) { v |= STP4020_ICR0_IFTYPE_IO|STP4020_ICR0_IOIE |STP4020_ICR0_SPKREN; |
