Module Name:    src
Committed By:   skrll
Date:           Tue Jul 17 05:57:49 UTC 2012

Modified Files:
        src/sys/dev/sdmmc: sdhc.c

Log Message:
Handle interrupt acknowledgement in the SDHC_FLAG_32BIT_ACCESS case in
the same way as non-SDHC_FLAG_32BIT_ACCESS case.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/sdmmc/sdhc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/sdmmc/sdhc.c
diff -u src/sys/dev/sdmmc/sdhc.c:1.20 src/sys/dev/sdmmc/sdhc.c:1.21
--- src/sys/dev/sdmmc/sdhc.c:1.20	Thu Jul 12 23:07:06 2012
+++ src/sys/dev/sdmmc/sdhc.c	Tue Jul 17 05:57:49 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: sdhc.c,v 1.20 2012/07/12 23:07:06 jakllsch Exp $	*/
+/*	$NetBSD: sdhc.c,v 1.21 2012/07/17 05:57:49 skrll Exp $	*/
 /*	$OpenBSD: sdhc.c,v 1.25 2009/01/13 19:44:20 grange Exp $	*/
 
 /*
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.20 2012/07/12 23:07:06 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.21 2012/07/17 05:57:49 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -1530,10 +1530,10 @@ sdhc_intr(void *arg)
 			uint32_t xstatus = HREAD4(hp, SDHC_NINTR_STATUS);
 			status = xstatus;
 			error = xstatus >> 16;
-			status |= (error ? SDHC_ERROR_INTERRUPT : 0);
 			if (!ISSET(status, SDHC_NINTR_STATUS_MASK))
 				continue; /* no interrupt for us */
 			/* Acknowledge the interrupts we are about to handle. */
+			xstatus |= (error ? SDHC_ERROR_INTERRUPT : 0);
 			HWRITE4(hp, SDHC_NINTR_STATUS, xstatus);
 		} else {
 			/* Find out which interrupts are pending. */

Reply via email to