diff mbox series

rockchip: board: lion-rk3368: increase phy autonegotiation timeout

Message ID 20180606101903.31626-1-jakob.unterwurzacher@theobroma-systems.com
State Accepted
Commit abb8fad0970f824f3550f7b93a2508bf06e477d0
Headers show
Series rockchip: board: lion-rk3368: increase phy autonegotiation timeout | expand

Commit Message

Jakob Unterwurzacher June 6, 2018, 10:19 a.m. UTC
The first dhcp command consistently fails with a timeout when
the lion-rk3368 board is connected to a Zyxel GS1100-24E
Gigabit Ethernet switch:

  ethernet@ff290000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Increasing PHY_ANEG_TIMEOUT from the default 4000 to 8000 makes the
first dhcp command work reliably.

Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
---
 include/configs/lion_rk3368.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Philipp Tomsich July 13, 2018, 10:25 a.m. UTC | #1
> The first dhcp command consistently fails with a timeout when
> the lion-rk3368 board is connected to a Zyxel GS1100-24E
> Gigabit Ethernet switch:
> 
>   ethernet@ff290000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
> 
> Increasing PHY_ANEG_TIMEOUT from the default 4000 to 8000 makes the
> first dhcp command work reliably.
> 
> Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
> ---
>  include/configs/lion_rk3368.h | 2 ++
>  1 file changed, 2 insertions(+)
> 

Applied to u-boot-rockchip, thanks!
diff mbox series

Patch

diff --git a/include/configs/lion_rk3368.h b/include/configs/lion_rk3368.h
index b9c6bf8954..cae0f1ed29 100644
--- a/include/configs/lion_rk3368.h
+++ b/include/configs/lion_rk3368.h
@@ -12,5 +12,7 @@ 
 #define KERNEL_LOAD_ADDR		0x280000
 #define DTB_LOAD_ADDR			0x5600000
 #define INITRD_LOAD_ADDR		0x5bf0000
+/* PHY needs longer aneg time at 1G */
+#define PHY_ANEG_TIMEOUT		8000
 
 #endif