summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2011-06-16 19:48:22 +0000
committeroga <oga@openbsd.org>2011-06-16 19:48:22 +0000
commit088c95ea3f3f83e690af6fa29be7f63e209fcd9b (patch)
tree9111f7401ec5fd2ac7ec65589a9881289cd9b01c /sys
parentRaise the number of interrupt sources per CPU from 32 to 64. This effectively (diff)
downloadwireguard-openbsd-088c95ea3f3f83e690af6fa29be7f63e209fcd9b.tar.xz
wireguard-openbsd-088c95ea3f3f83e690af6fa29be7f63e209fcd9b.zip
Enable msi support on iwn.
tested by many for over a week. ok kettenis@ phessler@.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_iwn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index 43f1f388aa0..a89548c8931 100644
--- a/sys/dev/pci/if_iwn.c
+++ b/sys/dev/pci/if_iwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwn.c,v 1.109 2011/01/24 18:32:54 damien Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.110 2011/06/16 19:48:22 oga Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -338,7 +338,7 @@ iwn_attach(struct device *parent, struct device *self, void *aux)
}
/* Install interrupt handler. */
- if (pci_intr_map(pa, &ih) != 0) {
+ if (pci_intr_map_msi(pa, &ih) != 0 && pci_intr_map(pa, &ih) != 0) {
printf(": can't map interrupt\n");
return;
}