From ab4bb7f7b2765bac131b17e8138595c67781f92c Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 8 Apr 2017 22:38:17 +0000 Subject: [PATCH] For legacy interrupt use the tag of the topmost bridge to establish the interrupt. We already correctly swizzle the pin. ok patrick@ --- sys/arch/arm64/dev/pciecam.c | 4 ++-- 1 file 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 * @@ -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; -- 2.20.1