Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/broadcom Clean up leftover when converting intr...



details:   https://anonhg.NetBSD.org/src/rev/583cd0a5810c
branches:  trunk
changeset: 365516:583cd0a5810c
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Aug 19 09:18:48 2018 +0000

description:
Clean up leftover when converting intr_establish() to fdtbus_intr_establish().
The latter accept only flags 0 or FDT_INTR_MPSAFE. For both cases, it add
IST_LEVEL flag for underlying intr_establish() function.

OK skrll

diffstat:

 sys/arch/arm/broadcom/bcm2835_emmc.c |  6 +++---
 sys/arch/arm/broadcom/bcm2835_mbox.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r f40b14c9fbbd -r 583cd0a5810c sys/arch/arm/broadcom/bcm2835_emmc.c
--- a/sys/arch/arm/broadcom/bcm2835_emmc.c      Sun Aug 19 08:00:41 2018 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_emmc.c      Sun Aug 19 09:18:48 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm2835_emmc.c,v 1.32 2017/12/10 21:38:26 skrll Exp $  */
+/*     $NetBSD: bcm2835_emmc.c,v 1.33 2018/08/19 09:18:48 rin Exp $    */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_emmc.c,v 1.32 2017/12/10 21:38:26 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_emmc.c,v 1.33 2018/08/19 09:18:48 rin Exp $");
 
 #include "bcmdmac.h"
 
@@ -174,7 +174,7 @@
                return;
        }
 
-       sc->sc_ih = fdtbus_intr_establish(phandle, 0, IPL_SDMMC, IST_LEVEL,
+       sc->sc_ih = fdtbus_intr_establish(phandle, 0, IPL_SDMMC, 0,
            sdhc_intr, &sc->sc);
 
        if (sc->sc_ih == NULL) {
diff -r f40b14c9fbbd -r 583cd0a5810c sys/arch/arm/broadcom/bcm2835_mbox.c
--- a/sys/arch/arm/broadcom/bcm2835_mbox.c      Sun Aug 19 08:00:41 2018 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_mbox.c      Sun Aug 19 09:18:48 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm2835_mbox.c,v 1.12 2017/12/10 21:38:26 skrll Exp $  */
+/*     $NetBSD: bcm2835_mbox.c,v 1.13 2018/08/19 09:18:48 rin Exp $    */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_mbox.c,v 1.12 2017/12/10 21:38:26 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_mbox.c,v 1.13 2018/08/19 09:18:48 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -120,7 +120,7 @@
                return;
        }
 
-       sc->sc_intrh = fdtbus_intr_establish(phandle, 0, IPL_VM, IST_LEVEL,
+       sc->sc_intrh = fdtbus_intr_establish(phandle, 0, IPL_VM, 0,
            bcmmbox_intr, sc);
        if (sc->sc_intrh == NULL) {
                aprint_error_dev(self, "failed to establish interrupt %s\n",



Home | Main Index | Thread Index | Old Index