Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Ignore PCI boot config unless the _DSM for igno...



details:   https://anonhg.NetBSD.org/src/rev/25487fbda8f8
branches:  trunk
changeset: 467251:25487fbda8f8
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jan 18 12:32:57 2020 +0000

description:
Ignore PCI boot config unless the _DSM for ignoring PCI boot config is
explicitly set to 0.

diffstat:

 sys/dev/acpi/acpi_pci.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 2eb3f14feb3d -r 25487fbda8f8 sys/dev/acpi/acpi_pci.c
--- a/sys/dev/acpi/acpi_pci.c   Sat Jan 18 12:00:33 2020 +0000
+++ b/sys/dev/acpi/acpi_pci.c   Sat Jan 18 12:32:57 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_pci.c,v 1.27 2020/01/17 17:06:32 jmcneill Exp $ */
+/* $NetBSD: acpi_pci.c,v 1.28 2020/01/18 12:32:57 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_pci.c,v 1.27 2020/01/17 17:06:32 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_pci.c,v 1.28 2020/01/18 12:32:57 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -518,9 +518,9 @@
        buf.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
 
        if (ACPI_FAILURE(AcpiEvaluateObject(handle, "_DSM", &objs, &buf)) || buf.Pointer == NULL)
-               return 0;
+               return 1;
 
-       ret = 0;
+       ret = 1;
 
        pobj = buf.Pointer;
        switch (pobj->Type) {



Home | Main Index | Thread Index | Old Index