Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci Don't check PCI_FLAGS_"MSI"_OKAY in pci_"ms...
details: https://anonhg.NetBSD.org/src/rev/efa74ea3c582
branches: trunk
changeset: 339006:efa74ea3c582
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Jun 22 03:57:01 2015 +0000
description:
Don't check PCI_FLAGS_"MSI"_OKAY in pci_"msix"_alloc_common().
OK'd by knakahara.
diffstat:
sys/arch/x86/pci/pci_msi_machdep.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r e7feae5d60b0 -r efa74ea3c582 sys/arch/x86/pci/pci_msi_machdep.c
--- a/sys/arch/x86/pci/pci_msi_machdep.c Mon Jun 22 00:11:33 2015 +0000
+++ b/sys/arch/x86/pci/pci_msi_machdep.c Mon Jun 22 03:57:01 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_msi_machdep.c,v 1.5 2015/05/15 08:36:41 knakahara Exp $ */
+/* $NetBSD: pci_msi_machdep.c,v 1.6 2015/06/22 03:57:01 msaitoh Exp $ */
/*
* Copyright (c) 2015 Internet Initiative Japan Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_msi_machdep.c,v 1.5 2015/05/15 08:36:41 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_msi_machdep.c,v 1.6 2015/06/22 03:57:01 msaitoh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -236,8 +236,7 @@
pci_intr_handle_t *vectors;
int error, i;
- if (((pa->pa_flags & PCI_FLAGS_MSI_OKAY) == 0)
- || ((pa->pa_flags & PCI_FLAGS_MSIX_OKAY) == 0)) {
+ if ((pa->pa_flags & PCI_FLAGS_MSIX_OKAY) == 0) {
DPRINTF(("PCI host bridge does not support MSI-X.\n"));
return ENODEV;
}
Home |
Main Index |
Thread Index |
Old Index