Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2025 12:12:44 GMT
From:      Ahmad Khalifa <vexeduxr@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3d5ef2982555 - main - acpi_gpiobus: don't print error message if _AEI object doesn't exist
Message-ID:  <202507111212.56BCCiUg032356@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by vexeduxr:

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

commit 3d5ef29825557bddc08b1171126026b051043194
Author:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
AuthorDate: 2025-07-11 12:08:54 +0000
Commit:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
CommitDate: 2025-07-11 12:10:00 +0000

    acpi_gpiobus: don't print error message if _AEI object doesn't exist
    
    GPIO controllers aren't required to have an _AEI object.
    
    Reviewed by:    wulf
    Approved by:    imp (mentor)
    Differential Revision:  https://reviews.freebsd.org/D51236
---
 sys/dev/gpio/acpi_gpiobus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/gpio/acpi_gpiobus.c b/sys/dev/gpio/acpi_gpiobus.c
index f9468e0deda0..94f4e5771266 100644
--- a/sys/dev/gpio/acpi_gpiobus.c
+++ b/sys/dev/gpio/acpi_gpiobus.c
@@ -357,7 +357,7 @@ acpi_gpiobus_attach(device_t dev)
 	status = AcpiWalkResources(handle, "_AEI", acpi_gpiobus_enumerate_aei,
 	    &ctx);
 
-	if (ACPI_FAILURE(status))
+	if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
 		device_printf(dev, "Failed to enumerate AEI resources\n");
 
 	return (0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507111212.56BCCiUg032356>