Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc correct (the commented out) calculation of bus...



details:   https://anonhg.NetBSD.org/src/rev/b59aef86f43e
branches:  trunk
changeset: 339644:b59aef86f43e
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Aug 02 07:07:02 2015 +0000

description:
correct (the commented out) calculation of bus frequency.

diffstat:

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

diffs (27 lines):

diff -r 30cc7028996c -r b59aef86f43e sys/dev/sdmmc/sdhc.c
--- a/sys/dev/sdmmc/sdhc.c      Sun Aug 02 03:29:22 2015 +0000
+++ b/sys/dev/sdmmc/sdhc.c      Sun Aug 02 07:07:02 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc.c,v 1.66 2015/08/02 00:24:24 jmcneill Exp $       */
+/*     $NetBSD: sdhc.c,v 1.67 2015/08/02 07:07:02 mlelstv 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.66 2015/08/02 00:24:24 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc.c,v 1.67 2015/08/02 07:07:02 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -922,7 +922,7 @@
                         << SDHC_SDCLK_XDIV_SHIFT) |
                        (((div >> 0) & SDHC_SDCLK_DIV_MASK)
                         << SDHC_SDCLK_DIV_SHIFT);
-               //freq = hp->clkbase / div;
+               //freq = hp->clkbase / (div ? div * 2 : 1);
                return true;
        } else {
                for (div = 1; div <= 256; div *= 2) {



Home | Main Index | Thread Index | Old Index