Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/gpio Fix a paste-o that prevented the 2-pin interrup...
details: https://anonhg.NetBSD.org/src/rev/5d4dde3061cc
branches: trunk
changeset: 832899:5d4dde3061cc
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jun 01 13:42:14 2018 +0000
description:
Fix a paste-o that prevented the 2-pin interrupt messages from being
printed correctly (but no other harmful effects). Pointed out by
Brad Spencer.
diffstat:
sys/dev/gpio/gpiopps.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 1ccdd2ac4551 -r 5d4dde3061cc sys/dev/gpio/gpiopps.c
--- a/sys/dev/gpio/gpiopps.c Fri Jun 01 09:34:39 2018 +0000
+++ b/sys/dev/gpio/gpiopps.c Fri Jun 01 13:42:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gpiopps.c,v 1.1 2018/05/20 14:08:33 thorpej Exp $ */
+/* $NetBSD: gpiopps.c,v 1.2 2018/06/01 13:42:14 thorpej Exp $ */
/*
* Copyright (c) 2016 Brad Spencer <brad%anduin.eldar.org@localhost>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gpiopps.c,v 1.1 2018/05/20 14:08:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gpiopps.c,v 1.2 2018/06/01 13:42:14 thorpej Exp $");
/*
* GPIO interface to the pps subsystem for ntp support.
@@ -213,9 +213,9 @@
return;
}
sc->sc_intrs[1].sc_irqmode = clear_edge;
- if (!gpio_intr_str(sc->sc_gpio, &sc->sc_map, 0,
- sc->sc_intrs[0].sc_irqmode,
- sc->sc_intrs[0].sc_intrstr,
+ if (!gpio_intr_str(sc->sc_gpio, &sc->sc_map, 1,
+ sc->sc_intrs[1].sc_irqmode,
+ sc->sc_intrs[1].sc_intrstr,
sizeof(sc->sc_intrs[1].sc_intrstr))) {
aprint_error_dev(self,
"failed to decode CLEAR interrupt\n");
Home |
Main Index |
Thread Index |
Old Index