summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_resource.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2006-05-07 03:28:10 +0000
committernjl <njl@FreeBSD.org>2006-05-07 03:28:10 +0000
commit6389d78b01474b1118cdad8a56bd5ce67c96a711 (patch)
tree863b9c14326ace98b78df611f1ff24adb92045a2 /sys/dev/acpica/acpi_resource.c
parent79b0d24eca099a2505c578785f4a464500d23449 (diff)
downloadFreeBSD-src-6389d78b01474b1118cdad8a56bd5ce67c96a711.zip
FreeBSD-src-6389d78b01474b1118cdad8a56bd5ce67c96a711.tar.gz
Don't attach special devices in the order they appear in the AML tree.
If the embedded controller exists before the sysresource devices, for example, it will be attached first. Instead, let the normal device order function work as we first desired. [1] There still remained a problem where we couldn't allocate resources in acpi0 that were passed up by the sysresource pseudo-devices. These devices had to probe/attach first to give their resources to acpi, then acpi would allocate them before probing/attaching other devices. To work around this, we attach them from acpi_sysres_alloc(). A better approach would be to implement multi-pass probe/attach in newbus but that's a much bigger task. Suggested by: jhb [1] Hardware from: Centaur Technologies MFC after: 1 week
Diffstat (limited to 'sys/dev/acpica/acpi_resource.c')
-rw-r--r--sys/dev/acpica/acpi_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c
index cde23e2..5785db6 100644
--- a/sys/dev/acpica/acpi_resource.c
+++ b/sys/dev/acpica/acpi_resource.c
@@ -688,7 +688,7 @@ acpi_sysres_probe(device_t dev)
device_set_desc(dev, "System Resource");
device_quiet(dev);
- return (-100);
+ return (BUS_PROBE_DEFAULT);
}
static int
OpenPOWER on IntegriCloud