Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic extend the timeout value. dwc_gmac_reset() someti...



details:   https://anonhg.NetBSD.org/src/rev/206f5d84b7a3
branches:  trunk
changeset: 979530:206f5d84b7a3
user:      ryo <ryo%NetBSD.org@localhost>
date:      Thu Dec 31 15:09:12 2020 +0000

description:
extend the timeout value. dwc_gmac_reset() sometimes takes more time.

diffstat:

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

diffs (27 lines):

diff -r 20722aa38be1 -r 206f5d84b7a3 sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c     Thu Dec 31 14:26:37 2020 +0000
+++ b/sys/dev/ic/dwc_gmac.c     Thu Dec 31 15:09:12 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.71 2020/06/27 13:34:20 jmcneill Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.72 2020/12/31 15:09:12 ryo Exp $ */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.71 2020/06/27 13:34:20 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.72 2020/12/31 15:09:12 ryo Exp $");
 
 /* #define     DWC_GMAC_DEBUG  1 */
 
@@ -379,7 +379,7 @@
        bus_space_write_4(sc->sc_bst, sc->sc_bsh, AWIN_GMAC_DMA_BUSMODE,
            bus_space_read_4(sc->sc_bst, sc->sc_bsh, AWIN_GMAC_DMA_BUSMODE)
            | GMAC_BUSMODE_RESET);
-       for (cnt = 0; cnt < 3000; cnt++) {
+       for (cnt = 0; cnt < 30000; cnt++) {
                if ((bus_space_read_4(sc->sc_bst, sc->sc_bsh, AWIN_GMAC_DMA_BUSMODE)
                    & GMAC_BUSMODE_RESET) == 0)
                        return 0;



Home | Main Index | Thread Index | Old Index