Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi Reduce sunxi_mmc_update_clock timeout fro...



details:   https://anonhg.NetBSD.org/src/rev/668d437ae818
branches:  trunk
changeset: 995726:668d437ae818
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Jan 03 14:49:05 2019 +0000

description:
Reduce sunxi_mmc_update_clock timeout from 10s to 1s

diffstat:

 sys/arch/arm/sunxi/sunxi_mmc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r de023a6cabcb -r 668d437ae818 sys/arch/arm/sunxi/sunxi_mmc.c
--- a/sys/arch/arm/sunxi/sunxi_mmc.c    Thu Jan 03 14:44:21 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_mmc.c    Thu Jan 03 14:49:05 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_mmc.c,v 1.30 2019/01/02 18:39:01 jmcneill Exp $ */
+/* $NetBSD: sunxi_mmc.c,v 1.31 2019/01/03 14:49:05 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_sunximmc.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.30 2019/01/02 18:39:01 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_mmc.c,v 1.31 2019/01/03 14:49:05 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -761,7 +761,7 @@
              SUNXI_MMC_CMD_UPCLK_ONLY |
              SUNXI_MMC_CMD_WAIT_PRE_OVER;
        MMC_WRITE(sc, SUNXI_MMC_CMD, cmd);
-       retry = 0xfffff;
+       retry = 100000;
        while (--retry > 0) {
                if (!(MMC_READ(sc, SUNXI_MMC_CMD) & SUNXI_MMC_CMD_START))
                        break;



Home | Main Index | Thread Index | Old Index