Module Name:    src
Committed By:   jruoho
Date:           Wed May 12 16:11:05 UTC 2010

Modified Files:
        src/sys/dev/acpi: acpi.c

Log Message:
When scanning the device "capabilities" (power, wake-up, etc.),
include all device nodes, regardless of the status of the device.

XXX: It is known that some systems implement the _STA method incorrectly.
     If needed in the future, attachment based on the values from this
     method may need revisiting. Same goes for ACPI_ACTIVATE_DEV.


To generate a diff of this commit:
cvs rdiff -u -r1.194 -r1.195 src/sys/dev/acpi/acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/acpi.c
diff -u src/sys/dev/acpi/acpi.c:1.194 src/sys/dev/acpi/acpi.c:1.195
--- src/sys/dev/acpi/acpi.c:1.194	Tue Apr 27 08:36:06 2010
+++ src/sys/dev/acpi/acpi.c	Wed May 12 16:11:05 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: acpi.c,v 1.194 2010/04/27 08:36:06 jruoho Exp $	*/
+/*	$NetBSD: acpi.c,v 1.195 2010/05/12 16:11:05 jruoho Exp $	*/
 
 /*-
  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.194 2010/04/27 08:36:06 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.195 2010/05/12 16:11:05 jruoho Exp $");
 
 #include "opt_acpi.h"
 #include "opt_pcifixup.h"
@@ -984,19 +984,12 @@
 acpi_rescan_capabilities(struct acpi_softc *sc)
 {
 	struct acpi_devnode *ad;
-	ACPI_DEVICE_INFO *di;
 	ACPI_HANDLE tmp;
 	ACPI_STATUS rv;
 
 	SIMPLEQ_FOREACH(ad, &sc->ad_head, ad_list) {
 
-		di = ad->ad_devinfo;
-
-		if (di->Type != ACPI_TYPE_DEVICE)
-			continue;
-
-		if ((di->Valid & ACPI_VALID_STA) != 0 &&
-		    (di->CurrentStatus & ACPI_STA_OK) != ACPI_STA_OK)
+		if (ad->ad_devinfo->Type != ACPI_TYPE_DEVICE)
 			continue;
 
 		/*

Reply via email to