Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi When scanning the device "capabilities" (power, ...
details: https://anonhg.NetBSD.org/src/rev/57c2f9754099
branches: trunk
changeset: 754782:57c2f9754099
user: jruoho <jruoho%NetBSD.org@localhost>
date: Wed May 12 16:11:05 2010 +0000
description:
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.
diffstat:
sys/dev/acpi/acpi.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diffs (39 lines):
diff -r 4c0dd17786cd -r 57c2f9754099 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c Wed May 12 15:59:52 2010 +0000
+++ b/sys/dev/acpi/acpi.c Wed May 12 16:11:05 2010 +0000
@@ -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;
/*
Home |
Main Index |
Thread Index |
Old Index