The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=c06b504def0ce10840d9415f204128b61210b5eb

commit c06b504def0ce10840d9415f204128b61210b5eb
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2025-01-29 15:03:37 +0000
Commit:     John Baldwin <j...@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++) {

Reply via email to