artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
912c5db
)
Fix parsing of SR_IRQ resource descriptors here as well.
author
kettenis
<kettenis@openbsd.org>
Tue, 7 Dec 2021 10:16:50 +0000
(10:16 +0000)
committer
kettenis
<kettenis@openbsd.org>
Tue, 7 Dec 2021 10:16:50 +0000
(10:16 +0000)
ok patrick@, anton@
sys/dev/acpi/dwiic_acpi.c
patch
|
blob
|
history
diff --git
a/sys/dev/acpi/dwiic_acpi.c
b/sys/dev/acpi/dwiic_acpi.c
index
0c9b25e
..
528f173
100644
(file)
--- a/
sys/dev/acpi/dwiic_acpi.c
+++ b/
sys/dev/acpi/dwiic_acpi.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dwiic_acpi.c,v 1.1
6 2020/08/22 22:29:28
kettenis Exp $ */
+/* $OpenBSD: dwiic_acpi.c,v 1.1
7 2021/12/07 10:16:50
kettenis Exp $ */
/*
* Synopsys DesignWare I2C controller
*
@@
-204,7
+204,7
@@
dwiic_acpi_parse_crs(int crsidx, union acpi_resource *crs, void *arg)
case SR_IRQ:
sc_crs->irq_int = ffs(letoh16(crs->sr_irq.irq_mask)) - 1;
/* Default is exclusive, active-high, edge triggered. */
- if (AML_CRSLEN(crs) <
3
)
+ if (AML_CRSLEN(crs) <
4
)
flags = SR_IRQ_MODE;
else
flags = crs->sr_irq.irq_flags;