diff options
author | 2017-04-08 22:38:17 +0000 | |
---|---|---|
committer | 2017-04-08 22:38:17 +0000 | |
commit | ab4bb7f7b2765bac131b17e8138595c67781f92c (patch) | |
tree | 135cc6d36bc95c7917f998949cfebbabfe966fd4 | |
parent | Bring over the changes I made to the armv7 version of this driver such that (diff) | |
download | wireguard-openbsd-ab4bb7f7b2765bac131b17e8138595c67781f92c.tar.xz wireguard-openbsd-ab4bb7f7b2765bac131b17e8138595c67781f92c.zip |
For legacy interrupt use the tag of the topmost bridge to establish the
interrupt. We already correctly swizzle the pin.
ok patrick@
-rw-r--r-- | sys/arch/arm64/dev/pciecam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/pciecam.c b/sys/arch/arm64/dev/pciecam.c index 795560cd633..93bdb15be3b 100644 --- a/sys/arch/arm64/dev/pciecam.c +++ b/sys/arch/arm64/dev/pciecam.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciecam.c,v 1.1 2017/02/24 10:03:12 patrick Exp $ */ +/* $OpenBSD: pciecam.c,v 1.2 2017/04/08 22:38:17 kettenis Exp $ */ /* * Copyright (c) 2013,2017 Patrick Wildt <patrick@blueri.se> * @@ -319,7 +319,7 @@ pciecam_intr_map(struct pci_attach_args *pa, struct pciecam_intr_handle *ih; ih = malloc(sizeof(struct pciecam_intr_handle), M_DEVBUF, M_WAITOK); ih->ih_pc = pa->pa_pc; - ih->ih_tag = pa->pa_tag; + ih->ih_tag = pa->pa_intrtag; ih->ih_intrpin = pa->pa_intrpin; ih->ih_msi = 0; *ihp = (pci_intr_handle_t)ih; |