From 38ce741470f8d3f5d8564df6e2803ffef2487a28 Mon Sep 17 00:00:00 2001 From: mycroft Date: Wed, 11 Aug 2004 00:59:40 +0000 Subject: Clear IOIE in settype(), too. Not that we currently change modes without powering down the socket, but... --- sys/dev/sbus/stp4020.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys') 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 -__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 #include @@ -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; -- cgit