summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-05-21 07:23:15 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-05-21 07:23:15 +0000
commit59053986f929ee294085c3aad121804f40c0f15a (patch)
tree353df4c17bd8c63e948fc0cc752fcc40eba9c2f5
parent326ae33772f9faa82867739d32ac19b50f853799 (diff)
Pass interrupt description along as well.
ok mlarkin@
-rw-r--r--sys/dev/acpi/dwiic_acpi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/acpi/dwiic_acpi.c b/sys/dev/acpi/dwiic_acpi.c
index 010d1a8a946..1ae1d79c057 100644
--- a/sys/dev/acpi/dwiic_acpi.c
+++ b/sys/dev/acpi/dwiic_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwiic_acpi.c,v 1.6 2018/05/20 09:30:00 kettenis Exp $ */
+/* $OpenBSD: dwiic_acpi.c,v 1.7 2018/05/21 07:23:14 kettenis Exp $ */
/*
* Synopsys DesignWare I2C controller
*
@@ -395,6 +395,9 @@ dwiic_acpi_found_hid(struct aml_node *node, void *arg)
ia.ia_addr = crs.i2c_addr;
ia.ia_cookie = node->parent;
+ if (crs.irq_int != 0 || crs.gpio_int_node != NULL)
+ ia.ia_intr = &crs;
+
config_found(sc->sc_iic, &ia, dwiic_i2c_print);
node->parent->attached = 1;