From 761635584ac41ae2414ce72c8e49ba13b235d700 Mon Sep 17 00:00:00 2001 From: visa Date: Wed, 27 Dec 2017 13:16:53 +0000 Subject: [PATCH] Make octeon_intr_establish() assume edge triggering with CIU3. This makes the API usable with edge triggered interrupt sources. --- sys/arch/octeon/dev/octcit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/octeon/dev/octcit.c b/sys/arch/octeon/dev/octcit.c index c01ee6d73c9..fef4663414e 100644 --- a/sys/arch/octeon/dev/octcit.c +++ b/sys/arch/octeon/dev/octcit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: octcit.c,v 1.3 2017/12/27 13:14:42 visa Exp $ */ +/* $OpenBSD: octcit.c,v 1.4 2017/12/27 13:16:53 visa Exp $ */ /* * Copyright (c) 2017 Visa Hankala @@ -244,7 +244,8 @@ void * octcit_intr_establish(int irq, int level, int (*func)(void *), void *arg, const char *name) { - return octcit_intr_establish_intsn(irq, level, 0, func, arg, name); + return octcit_intr_establish_intsn(irq, level, CIH_EDGE, func, arg, + name); } void * -- 2.20.1