summaryrefslogtreecommitdiff
path: root/sys/dev/vr
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2004-10-27 19:02:23 +0000
committerBruce M Simpson <bms@FreeBSD.org>2004-10-27 19:02:23 +0000
commitd6dd4af4acbc1057fb21719fe5b7249fec4512f7 (patch)
tree9471451e20770d92b3a4ea8ee08a650bb44977f9 /sys/dev/vr
parentb08abf6cc0479b4351479eb02972a95210d92343 (diff)
Notes
Diffstat (limited to 'sys/dev/vr')
-rw-r--r--sys/dev/vr/if_vr.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c
index d509b136df72..6febeaf05d73 100644
--- a/sys/dev/vr/if_vr.c
+++ b/sys/dev/vr/if_vr.c
@@ -1233,8 +1233,15 @@ vr_intr(void *arg)
VR_LOCK(sc);
- if (sc->suspended)
+ if (sc->suspended) {
+ /*
+ * Forcibly disable interrupts.
+ * XXX: Mobile VIA based platforms may need
+ * interrupt re-enable on resume.
+ */
+ CSR_WRITE_2(sc, VR_IMR, 0x0000);
goto done_locked;
+ }
#ifdef DEVICE_POLLING
if (ifp->if_flags & IFF_POLLING)