summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-05-02 13:29:24 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-05-02 13:29:24 +0000
commit92e9a22b1e51680e5aa684b40c95354f1e6f056f (patch)
treef7078c5cb0bbe152b120e8ea1c0e43fbea648049
parentd0ba09ebbc5f70c3d44043876f1fea110e9a4f58 (diff)
Get bus number from _CRS.
ok sthen@, deraadt@
-rw-r--r--sys/arch/arm64/dev/acpipci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/arm64/dev/acpipci.c b/sys/arch/arm64/dev/acpipci.c
index ecb69f43c85..e558c203d3e 100644
--- a/sys/arch/arm64/dev/acpipci.c
+++ b/sys/arch/arm64/dev/acpipci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpipci.c,v 1.13 2019/08/22 17:14:21 kettenis Exp $ */
+/* $OpenBSD: acpipci.c,v 1.14 2020/05/02 13:29:23 kettenis Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis
*
@@ -268,6 +268,10 @@ acpipci_parse_resources(int crsidx, union acpi_resource *crs, void *arg)
break;
case LR_TYPE_BUS:
extent_free(sc->sc_busex, min, len, EX_WAITOK);
+ /*
+ * Let _CRS minimum bus number override _BBN.
+ */
+ sc->sc_bus = min;
break;
}