Module Name:    src
Committed By:   nonaka
Date:           Thu Aug 11 01:33:25 UTC 2016

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

Log Message:
Fix incorrect sector counts with MMC.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/sdmmc/sdmmc_mem.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/sdmmc_mem.c
diff -u src/sys/dev/sdmmc/sdmmc_mem.c:1.51 src/sys/dev/sdmmc/sdmmc_mem.c:1.52
--- src/sys/dev/sdmmc/sdmmc_mem.c:1.51	Sun Mar 13 09:12:16 2016
+++ src/sys/dev/sdmmc/sdmmc_mem.c	Thu Aug 11 01:33:25 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: sdmmc_mem.c,v 1.51 2016/03/13 09:12:16 tsutsui Exp $	*/
+/*	$NetBSD: sdmmc_mem.c,v 1.52 2016/08/11 01:33:25 nonaka Exp $	*/
 /*	$OpenBSD: sdmmc_mem.c,v 1.10 2009/01/09 10:55:22 jsg Exp $	*/
 
 /*
@@ -45,7 +45,7 @@
 /* Routines for SD/MMC memory cards. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.51 2016/03/13 09:12:16 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.52 2016/08/11 01:33:25 nonaka Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -905,7 +905,7 @@ static int
 sdmmc_mem_mmc_init(struct sdmmc_softc *sc, struct sdmmc_function *sf)
 {
 	int width, value, hs_timing, bus_clock, error;
-	char ext_csd[512];
+	uint8_t ext_csd[512];
 	uint32_t sectors = 0;
 
 	sc->sc_transfer_mode = NULL;

Reply via email to