git: f32ffd11b547 - main - isa_common: allow multiple device instances

From: ShengYi Hung <aokblast_at_FreeBSD.org>
Date: Fri, 03 Oct 2025 06:20:22 UTC
The branch main has been updated by aokblast:

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

commit f32ffd11b54792d7bdd37b6dfc0f904a561b879c
Author:     ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2025-10-01 08:33:19 +0000
Commit:     ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2025-10-03 06:20:04 +0000

    isa_common: allow multiple device instances
    
    In some devices, there may be multiple isa bridges available from different
    sources. Therefore, we allow multiple lpc devices to be generated so that
    pcie bus won't show "none" anymore.
    For example, in my AMD based Framework Laptop, there are two such
    bridges. One is acpi hinted, another is from pcie.
    
    Reviewed by:    imp
    Approved by:    lwhsu (mentor)
    MFC after:      2 weeks
    Differential Revision: https://reviews.freebsd.org/D52815
---
 sys/isa/isa_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
index 8e4064af1455..1a6df7bf6046 100644
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -1114,7 +1114,7 @@ isab_attach(device_t dev)
 {
 	device_t child;
 
-	child = device_add_child(dev, "isa", 0);
+	child = device_add_child(dev, "isa", DEVICE_UNIT_ANY);
 	if (child == NULL)
 		return (ENXIO);
 	bus_attach_children(dev);