[U-Boot] [PATCH] ti: k2g: increase phy autoneg timeout

Vitaly Andrianov vitalya at ti.com
Mon Mar 14 13:19:56 CET 2016


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 <vitalya at ti.com>
>> ---
>>
>>   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 <common.h>
>> +#include "board.h"
>>   #include <spl.h>
>>   #include <exports.h>
>>   #include <fdt_support.h>
>
> Spurious change?
>
> Reviewed-by: Tom Rini <trini at konsulko.com>
>
> 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



More information about the U-Boot mailing list