summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/dwpcie.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-08-03 22:40:05 +0000
committerkettenis <kettenis@openbsd.org>2018-08-03 22:40:05 +0000
commit51b649b5a5f1cdb715a4dbfc7d671eb81203d4cb (patch)
tree1c41bd5214722745f13b4667c57326e5d51a3ea3 /sys/dev/fdt/dwpcie.c
parentLet ahci(4) match on _CLS instead of _HID when attaching at acpi(4). Avoids (diff)
downloadwireguard-openbsd-51b649b5a5f1cdb715a4dbfc7d671eb81203d4cb.tar.xz
wireguard-openbsd-51b649b5a5f1cdb715a4dbfc7d671eb81203d4cb.zip
Pass PCIe requester ID as sideband data here as well.
Diffstat (limited to 'sys/dev/fdt/dwpcie.c')
-rw-r--r--sys/dev/fdt/dwpcie.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c
index f56857ca208..0a338ccb37d 100644
--- a/sys/dev/fdt/dwpcie.c
+++ b/sys/dev/fdt/dwpcie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwpcie.c,v 1.7 2018/07/28 13:59:08 kettenis Exp $ */
+/* $OpenBSD: dwpcie.c,v 1.8 2018/08/03 22:40:05 kettenis Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
*
@@ -580,6 +580,8 @@ dwpcie_intr_establish(void *v, pci_intr_handle_t ihp, int level,
pcireg_t reg;
int off;
+ /* Assume hardware passes Requester ID as sideband data. */
+ data = pci_requester_id(ih->ih_pc, ih->ih_tag);
cookie = arm_intr_establish_fdt_msi(sc->sc_node, &addr,
&data, level, func, arg, (void *)name);
if (cookie == NULL)