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/e8c95ef2d56e
branches:  trunk
changeset: 447189:e8c95ef2d56e
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 d6b71c99be8b -r e8c95ef2d56e 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