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 Fix a typo that prevented ahb reset from ...



details:   https://anonhg.NetBSD.org/src/rev/8dda1467ff50
branches:  trunk
changeset: 826482:8dda1467ff50
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Sep 07 21:36:19 2017 +0000

description:
Fix a typo that prevented ahb reset from ever being deasserted.

diffstat:

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

diffs (27 lines):

diff -r af8d65179d49 -r 8dda1467ff50 sys/arch/arm/sunxi/sunxi_emac.c
--- a/sys/arch/arm/sunxi/sunxi_emac.c   Thu Sep 07 21:22:51 2017 +0000
+++ b/sys/arch/arm/sunxi/sunxi_emac.c   Thu Sep 07 21:36:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_emac.c,v 1.5 2017/09/07 01:07:04 jmcneill Exp $ */
+/* $NetBSD: sunxi_emac.c,v 1.6 2017/09/07 21:36:19 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2016-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -33,7 +33,7 @@
 #include "opt_net_mpsafe.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.5 2017/09/07 01:07:04 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.6 2017/09/07 21:36:19 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -1285,7 +1285,7 @@
 
        if ((sc->rst_ahb = fdtbus_reset_get(phandle, "ahb")) == NULL)
                return ENXIO;
-       sc->rst_ahb = fdtbus_reset_get(phandle, "ephy");
+       sc->rst_ephy = fdtbus_reset_get(phandle, "ephy");
 
        /* Regulator is optional */
        sc->reg_phy = fdtbus_regulator_acquire(phandle, "phy-supply");



Home | Main Index | Thread Index | Old Index