Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/fdt Print interrupt details
details: https://anonhg.NetBSD.org/src/rev/561b173d0fd8
branches: trunk
changeset: 457119:561b173d0fd8
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Jun 12 10:19:27 2019 +0000
description:
Print interrupt details
diffstat:
sys/arch/arm/fdt/plmmc_fdt.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 605a5a69d06e -r 561b173d0fd8 sys/arch/arm/fdt/plmmc_fdt.c
--- a/sys/arch/arm/fdt/plmmc_fdt.c Wed Jun 12 10:16:52 2019 +0000
+++ b/sys/arch/arm/fdt/plmmc_fdt.c Wed Jun 12 10:19:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: plmmc_fdt.c,v 1.1 2017/06/02 11:04:01 jmcneill Exp $ */
+/* $NetBSD: plmmc_fdt.c,v 1.2 2019/06/12 10:19:27 skrll Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plmmc_fdt.c,v 1.1 2017/06/02 11:04:01 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plmmc_fdt.c,v 1.2 2019/06/12 10:19:27 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -87,6 +87,12 @@
return;
}
+ char intrstr[128];
+ if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) {
+ aprint_error(": failed to decode interrupt\n");
+ return;
+ }
+
sc->sc_dev = self;
sc->sc_clock_freq = clk_get_rate(clk);
of_getprop_uint32(phandle, "max-frequency", &sc->sc_max_freq);
@@ -104,6 +110,7 @@
aprint_error_dev(self, "couldn't install interrupt handler\n");
return;
}
+ aprint_normal_dev(self, "interrupting on %s\n", intrstr);
plmmc_init(sc);
}
Home |
Main Index |
Thread Index |
Old Index