Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc don't select SDR12 mode if we are <= 400 kHz



details:   https://anonhg.NetBSD.org/src/rev/d78fec389985
branches:  trunk
changeset: 809821:d78fec389985
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Aug 03 00:44:52 2015 +0000

description:
don't select SDR12 mode if we are <= 400 kHz

diffstat:

 sys/dev/sdmmc/sdhc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e8f5f7a56c57 -r d78fec389985 sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c      Mon Aug 03 00:19:27 2015 +0000
+++ b/sys/dev/sdmmc/sdhc.c      Mon Aug 03 00:44:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc.c,v 1.73 2015/08/03 00:19:27 jmcneill Exp $       */
+/*     $NetBSD: sdhc.c,v 1.74 2015/08/03 00:44:52 jmcneill 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.73 2015/08/03 00:19:27 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.74 2015/08/03 00:44:52 jmcneill Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -1015,7 +1015,7 @@
                        HSET2(hp, SDHC_HOST_CTL2, SDHC_UHS_MODE_SELECT_SDR50);
                } else if (freq > 25000) {
                        HSET2(hp, SDHC_HOST_CTL2, SDHC_UHS_MODE_SELECT_SDR25);
-               } else {
+               } else if (freq > 400) {
                        HSET2(hp, SDHC_HOST_CTL2, SDHC_UHS_MODE_SELECT_SDR12);
                }
        }



Home | Main Index | Thread Index | Old Index