Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Allow MSIX and MSI for interrupt type



details:   https://anonhg.NetBSD.org/src/rev/4dbe242712e5
branches:  trunk
changeset: 1018547:4dbe242712e5
user:      ryoon <ryoon%NetBSD.org@localhost>
date:      Sun Feb 07 11:25:56 2021 +0000

description:
Allow MSIX and MSI for interrupt type

diffstat:

 sys/dev/pci/xhci_pci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0dc2d3aeca53 -r 4dbe242712e5 sys/dev/pci/xhci_pci.c
--- a/sys/dev/pci/xhci_pci.c    Sun Feb 07 10:47:40 2021 +0000
+++ b/sys/dev/pci/xhci_pci.c    Sun Feb 07 11:25:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci_pci.c,v 1.27 2021/02/07 04:58:17 dbj Exp $        */
+/*     $NetBSD: xhci_pci.c,v 1.28 2021/02/07 11:25:56 ryoon Exp $      */
 /*     OpenBSD: xhci_pci.c,v 1.4 2014/07/12 17:38:51 yuo Exp   */
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.27 2021/02/07 04:58:17 dbj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.28 2021/02/07 11:25:56 ryoon Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_xhci_pci.h"
@@ -223,7 +223,7 @@
 #endif
 
        /* Allocate and establish the interrupt. */
-       if (pci_intr_alloc(pa, &psc->sc_pihp, counts, 0)) {
+       if (pci_intr_alloc(pa, &psc->sc_pihp, counts, PCI_INTR_TYPE_MSIX)) {
                aprint_error_dev(self, "can't allocate handler\n");
                goto fail;
        }



Home | Main Index | Thread Index | Old Index