Module Name: src
Committed By: kiyohara
Date: Tue Jul 12 13:43:18 UTC 2016
Modified Files:
src/sys/arch/arm/marvell: pci_machdep.c
Log Message:
Fix intr_establish. PCI interrupt is LEVEL LOW.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/marvell/pci_machdep.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/arch/arm/marvell/pci_machdep.c
diff -u src/sys/arch/arm/marvell/pci_machdep.c:1.9 src/sys/arch/arm/marvell/pci_machdep.c:1.10
--- src/sys/arch/arm/marvell/pci_machdep.c:1.9 Fri Oct 2 05:22:50 2015
+++ src/sys/arch/arm/marvell/pci_machdep.c Tue Jul 12 13:43:18 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_machdep.c,v 1.9 2015/10/02 05:22:50 msaitoh Exp $ */
+/* $NetBSD: pci_machdep.c,v 1.10 2016/07/12 13:43:18 kiyohara Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.9 2015/10/02 05:22:50 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.10 2016/07/12 13:43:18 kiyohara Exp $");
#include "opt_mvsoc.h"
#include "gtpci.h"
@@ -352,7 +352,8 @@ gtpci_gpp_intr_establish(void *v, pci_in
int2gpp = prop_dictionary_get(device_properties(sc->sc_dev), "int2gpp");
gpp = prop_array_get(int2gpp, int_pin);
gpp_pin = prop_number_integer_value(gpp);
- return mvsocgpp_intr_establish(gpp_pin, ipl, 0, intrhand, intrarg);
+ return mvsocgpp_intr_establish(gpp_pin, ipl, IST_LEVEL_LOW, intrhand,
+ intrarg);
}
static void