git: c06b504def0c - main - simplebus: Stop accepting SYS_RES_IOPORT resources
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Jan 2025 15:04:42 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=c06b504def0ce10840d9415f204128b61210b5eb
commit c06b504def0ce10840d9415f204128b61210b5eb
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-01-29 15:03:37 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-01-29 15:03:37 +0000
simplebus: Stop accepting SYS_RES_IOPORT resources
Child devices handling I/O port resources (such as PCI-e bridges)
should map those to a memory resource and pass up a request for the
translated memory resource.
Differential Revision: https://reviews.freebsd.org/D48501
---
sys/dev/fdt/simplebus.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c
index ee308c44114c..a301fb0f247c 100644
--- a/sys/dev/fdt/simplebus.c
+++ b/sys/dev/fdt/simplebus.c
@@ -461,9 +461,6 @@ simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid,
count = rle->count;
}
- if (type == SYS_RES_IOPORT)
- type = SYS_RES_MEMORY;
-
if (type == SYS_RES_MEMORY) {
/* Remap through ranges property */
for (j = 0; j < sc->nranges; j++) {