Skip to contentSkip to conversation

ARM: rmobile: Increase PHY auto-negotiation timeout to 20s

PATCH New Marek Vasut 1 participant 1 message Jun 14, 2020 Arm/RISC-V/Renesas architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: rmobile: Increase PHY auto-negotiation timeout to 20s

The ethernet PHY on all known Gen3 boards takes a while to come out of reset, increase the auto-negotiation timeout to prevent it from timing out in case the ethernet is used right after the board was reset.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 include/configs/rcar-gen3-common.h | 3 +++
 1 file changed, 3 insertions(+)
include/configs/rcar-gen3-common.h +3 -0
index 8f400ba05a..cf4d3bad2e 100644
@@ -34,6 +34,9 @@
 #define CONFIG_SYS_MAXARGS		64
 #define CONFIG_SYS_BAUDRATE_TABLE	{ 115200, 38400 }
 
+/* PHY needs a longer autoneg timeout */
+#define PHY_ANEG_TIMEOUT		20000
+
 /* MEMORY */
 #define CONFIG_SYS_INIT_SP_ADDR		CONFIG_SYS_TEXT_BASE
 
Signature · 1 line
2.26.2