From: Vitaly Andrianov Date: Mon, 14 Mar 2016 08:19:56 -0400 Subject: [U-Boot] [PATCH] ti: k2g: increase phy autoneg timeout In-Reply-To: <20160311171418.GQ23166@bill-the-cat> References: <1457702584-21930-1-git-send-email-vitalya@ti.com> <20160311171418.GQ23166@bill-the-cat> Message-ID: <56E6AC6C.5070700@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/11/2016 12:14 PM, Tom Rini wrote: > On Fri, Mar 11, 2016 at 08:23:04AM -0500, Vitaly Andrianov wrote: > >> After power cycle of a K2G EVM dhcp fails due to a auto-negotiation >> timeout. This commit increases the timeout to fix the issue. >> >> Signed-off-by: Vitaly Andrianov >> --- >> >> board/ti/ks2_evm/board.c | 2 +- >> include/configs/k2g_evm.h | 1 + >> 2 files changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c >> index 73f0f27..a2c7542 100644 >> --- a/board/ti/ks2_evm/board.c >> +++ b/board/ti/ks2_evm/board.c >> @@ -7,8 +7,8 @@ >> * SPDX-License-Identifier: GPL-2.0+ >> */ >> >> -#include "board.h" >> #include >> +#include "board.h" >> #include >> #include >> #include > > Spurious change? > > Reviewed-by: Tom Rini > > for the rest tho. > Without this change it gives compilation warning: In file included from include/config.h:5:0, from include/common.h:18, from board/ti/ks2_evm/board.c:11: include/configs/k2g_evm.h:55:0: warning: "PHY_ANEG_TIMEOUT" redefined #define PHY_ANEG_TIMEOUT 10000 /* PHY needs longer aneg time */ ^ In file included from ./arch/arm/include/asm/ti-common/keystone_net.h:14:0, from board/ti/ks2_evm/board.h:13, from board/ti/ks2_evm/board.c:10: include/phy.h:36:0: note: this is the location of the previous definition #define PHY_ANEG_TIMEOUT 4000