Module Name: src Committed By: hkenken Date: Thu Nov 14 06:00:16 UTC 2019
Modified Files: src/sys/arch/arm/imx/fdt: if_enet_imx.c Log Message: Fixed bug. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/imx/fdt/if_enet_imx.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/imx/fdt/if_enet_imx.c diff -u src/sys/arch/arm/imx/fdt/if_enet_imx.c:1.7 src/sys/arch/arm/imx/fdt/if_enet_imx.c:1.8 --- src/sys/arch/arm/imx/fdt/if_enet_imx.c:1.7 Wed Nov 13 07:56:10 2019 +++ src/sys/arch/arm/imx/fdt/if_enet_imx.c Thu Nov 14 06:00:16 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: if_enet_imx.c,v 1.7 2019/11/13 07:56:10 hkenken Exp $ */ +/* $NetBSD: if_enet_imx.c,v 1.8 2019/11/14 06:00:16 hkenken Exp $ */ /*- * Copyright (c) 2019 Genetec Corporation. All rights reserved. * Written by Hashimoto Kenichi for Genetec Corporation. @@ -25,7 +25,7 @@ * SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_enet_imx.c,v 1.7 2019/11/13 07:56:10 hkenken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_enet_imx.c,v 1.8 2019/11/14 06:00:16 hkenken Exp $"); #include "opt_fdt.h" @@ -210,7 +210,7 @@ enet_phy_reset(struct enet_fdt_softc *sc fdtbus_gpio_write(sc->sc_pin_reset, 0); /* Post delay */ - if (!of_getprop_uint32(phandle, "phy-reset-post-delay", &msec)) + if (of_getprop_uint32(phandle, "phy-reset-post-delay", &msec)) msec = 0; delay(msec * 1000);