Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc Fix a delay to a correct value.
details: https://anonhg.NetBSD.org/src/rev/fb2946102f85
branches: trunk
changeset: 780470:fb2946102f85
user: matt <matt%NetBSD.org@localhost>
date: Thu Jul 26 18:36:55 2012 +0000
description:
Fix a delay to a correct value.
diffstat:
sys/dev/sdmmc/sdmmc_mem.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 140f7424acaa -r fb2946102f85 sys/dev/sdmmc/sdmmc_mem.c
--- a/sys/dev/sdmmc/sdmmc_mem.c Thu Jul 26 18:36:09 2012 +0000
+++ b/sys/dev/sdmmc/sdmmc_mem.c Thu Jul 26 18:36:55 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdmmc_mem.c,v 1.22 2012/07/23 13:32:19 matt Exp $ */
+/* $NetBSD: sdmmc_mem.c,v 1.23 2012/07/26 18:36:55 matt 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.22 2012/07/23 13:32:19 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.23 2012/07/26 18:36:55 matt Exp $");
#ifdef _KERNEL_OPT
#include "opt_sdmmc.h"
@@ -658,8 +658,8 @@
sf->csd.tran_speed =
switch_group0_functions[best_func].freq;
- /* Wait 400KHz x 8 clock */
- delay(1);
+ /* Wait 400KHz x 8 clock (2.5us * 8 + slop) */
+ delay(25);
}
}
Home |
Main Index |
Thread Index |
Old Index