Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc clear SMF_UHS_MODE flag before enabling card
details: https://anonhg.NetBSD.org/src/rev/e70c20b88c01
branches: trunk
changeset: 339692:e70c20b88c01
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Aug 03 12:10:29 2015 +0000
description:
clear SMF_UHS_MODE flag before enabling card
diffstat:
sys/dev/sdmmc/sdmmc_mem.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 79f06431779f -r e70c20b88c01 sys/dev/sdmmc/sdmmc_mem.c
--- a/sys/dev/sdmmc/sdmmc_mem.c Mon Aug 03 11:24:17 2015 +0000
+++ b/sys/dev/sdmmc/sdmmc_mem.c Mon Aug 03 12:10:29 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdmmc_mem.c,v 1.40 2015/08/03 11:24:17 jmcneill Exp $ */
+/* $NetBSD: sdmmc_mem.c,v 1.41 2015/08/03 12:10:29 jmcneill 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.40 2015/08/03 11:24:17 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.41 2015/08/03 12:10:29 jmcneill Exp $");
#ifdef _KERNEL_OPT
#include "opt_sdmmc.h"
@@ -132,6 +132,7 @@
SDMMC_LOCK(sc);
/* Set host mode to SD "combo" card or SD memory-only. */
+ CLR(sc->sc_flags, SMF_UHS_MODE);
SET(sc->sc_flags, SMF_SD_MODE|SMF_MEM_MODE);
if (ISSET(sc->sc_caps, SMC_CAPS_SPI_MODE))
Home |
Main Index |
Thread Index |
Old Index