Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi Keep SDIO interrupt enable state when mas...



details:   https://anonhg.NetBSD.org/src/rev/4ff55358b730
branches:  trunk
changeset: 844711:4ff55358b730
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Sep 01 11:44:23 2019 +0000

description:
Keep SDIO interrupt enable state when masking other interrupts

diffstat:

 sys/arch/arm/sunxi/sunxi_mmc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e5c254225fc7 -r 4ff55358b730 sys/arch/arm/sunxi/sunxi_mmc.c
--- a/sys/arch/arm/sunxi/sunxi_mmc.c    Sun Sep 01 08:04:48 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_mmc.c    Sun Sep 01 11:44:23 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_mmc.c,v 1.33 2019/05/27 23:27:01 jmcneill Exp $ */
+/* $NetBSD: sunxi_mmc.c,v 1.34 2019/09/01 11:44:23 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_sunximmc.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.33 2019/05/27 23:27:01 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.34 2019/09/01 11:44:23 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -620,7 +620,7 @@
 
        if ((rint & ~SUNXI_MMC_INT_SDIO_INT) != 0) {
                imask = MMC_READ(sc, SUNXI_MMC_IMASK);
-               MMC_WRITE(sc, SUNXI_MMC_IMASK, imask & ~SUNXI_MMC_INT_SDIO_INT);
+               MMC_WRITE(sc, SUNXI_MMC_IMASK, imask & SUNXI_MMC_INT_SDIO_INT);
                sc->sc_intr_rint |= (rint & ~SUNXI_MMC_INT_SDIO_INT);
                cv_broadcast(&sc->sc_intr_cv);
        }



Home | Main Index | Thread Index | Old Index