Module Name: src
Committed By: jmcneill
Date: Sat May 30 00:56:42 UTC 2015
Modified Files:
src/sys/dev/ic: arn5008.c
Log Message:
disable interrupts when we get an rfsilent event, and make sure to clear intr
sync cause register
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/ic/arn5008.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/arn5008.c
diff -u src/sys/dev/ic/arn5008.c:1.8 src/sys/dev/ic/arn5008.c:1.9
--- src/sys/dev/ic/arn5008.c:1.8 Sun May 24 17:19:29 2015
+++ src/sys/dev/ic/arn5008.c Sat May 30 00:56:42 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: arn5008.c,v 1.8 2015/05/24 17:19:29 matt Exp $ */
+/* $NetBSD: arn5008.c,v 1.9 2015/05/30 00:56:42 jmcneill Exp $ */
/* $OpenBSD: ar5008.c,v 1.21 2012/08/25 12:14:31 kettenis Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.8 2015/05/24 17:19:29 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.9 2015/05/30 00:56:42 jmcneill Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -1257,8 +1257,9 @@ ar5008_intr(struct athn_softc *sc)
if ((sc->sc_flags & ATHN_FLAG_RFSILENT) &&
(sync & AR_INTR_SYNC_GPIO_PIN(sc->sc_rfsilent_pin))) {
+ AR_WRITE(sc, AR_INTR_SYNC_ENABLE, 0);
+ (void)AR_READ(sc, AR_INTR_SYNC_ENABLE);
pmf_event_inject(sc->sc_dev, PMFE_RADIO_OFF);
- return 1;
}
AR_WRITE(sc, AR_INTR_SYNC_CAUSE, sync);