From: kettenis Date: Sat, 8 Apr 2017 22:38:17 +0000 (+0000) Subject: For legacy interrupt use the tag of the topmost bridge to establish the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ab4bb7f7b2765bac131b17e8138595c67781f92c;p=openbsd For legacy interrupt use the tag of the topmost bridge to establish the interrupt. We already correctly swizzle the pin. ok patrick@ --- 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 * @@ -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;