Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/rockchip Rock64 needs more time for the PHY to ...
details: https://anonhg.NetBSD.org/src/rev/df5d361050b5
branches: trunk
changeset: 833553:df5d361050b5
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jun 30 18:27:10 2018 +0000
description:
Rock64 needs more time for the PHY to reset. Add a delay.
diffstat:
sys/arch/arm/rockchip/rk_gmac.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 5423cb9c682b -r df5d361050b5 sys/arch/arm/rockchip/rk_gmac.c
--- a/sys/arch/arm/rockchip/rk_gmac.c Sat Jun 30 18:20:35 2018 +0000
+++ b/sys/arch/arm/rockchip/rk_gmac.c Sat Jun 30 18:27:10 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_gmac.c,v 1.5 2018/06/30 18:20:35 jmcneill Exp $ */
+/* $NetBSD: rk_gmac.c,v 1.6 2018/06/30 18:27:10 jmcneill Exp $ */
/*-
* Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rk_gmac.c,v 1.5 2018/06/30 18:20:35 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_gmac.c,v 1.6 2018/06/30 18:27:10 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -284,6 +284,9 @@
if (rk_gmac_reset(phandle) != 0)
aprint_error_dev(self, "PHY reset failed\n");
+ /* Rock64 seems to need more time for the reset to complete */
+ delay(100000);
+
#if notyet
if (of_hasprop(phandle, "snps,force_thresh_dma_mode"))
sc->sc_flags |= DWC_GMAC_FORCE_THRESH_DMA_MODE;
Home |
Main Index |
Thread Index |
Old Index