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/ad72ce288b24
branches:  trunk
changeset: 834597:ad72ce288b24
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 e9f90ed4a4a5 -r ad72ce288b24 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 e9f90ed4a4a5 -r ad72ce288b24 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