Module Name:    src
Committed By:   jmcneill
Date:           Sat Jan 18 12:32:57 UTC 2020

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/acpi/acpi_pci.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_pci.c
diff -u src/sys/dev/acpi/acpi_pci.c:1.27 src/sys/dev/acpi/acpi_pci.c:1.28
--- src/sys/dev/acpi/acpi_pci.c:1.27	Fri Jan 17 17:06:32 2020
+++ src/sys/dev/acpi/acpi_pci.c	Sat Jan 18 12:32:57 2020
@@ -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 @@ acpi_pci_ignore_boot_config(ACPI_HANDLE 
 	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) {

Reply via email to