Skip to contentSkip to conversation

ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM

PATCH In review Marek Vasut 3 participants 4 messages Nov 13, 2021 – Nov 30, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM

The Micrel PHYs on known DHSOM based boards take 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 Patrice Chotard <[email protected]>
Cc Patrick Delaunay <[email protected]>
---
 include/configs/stm32mp15_dh_dhsom.h | 3 +++
 1 file changed, 3 insertions(+)
include/configs/stm32mp15_dh_dhsom.h +3 -0
index b68e153f10b..d2fe923a33b 100644
@@ -21,6 +21,9 @@
 		"sf update ${loadaddr} 0x80000 ${filesize} && "		\
 		"env set filesize1 && env set loadaddr1\0"
 
+/* PHY needs a longer autoneg timeout */
+#define PHY_ANEG_TIMEOUT		20000
+
 #include <configs/stm32mp15_common.h>
 
 #define CONFIG_SPL_TARGET		"u-boot.itb"
Signature · 1 line
2.33.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Marek

Quoted 18 lines · Marek Vasut

The Micrel PHYs on known DHSOM based boards take 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 Patrice Chotard <[email protected]>
Cc Patrick Delaunay <[email protected]>
---
 include/configs/stm32mp15_dh_dhsom.h | 3 +++
 1 file changed, 3 insertions(+)
include/configs/stm32mp15_dh_dhsom.h +0 -0
index b68e153f10b..d2fe923a33b 100644

include/configs/stm32mp15_dh_dhsom.h line 29

Quoted 9 lines
include/configs/stm32mp15_dh_dhsom.h +3 -0
@@ -21,6 +21,9 @@
 		"sf update ${loadaddr} 0x80000 ${filesize} && "		\
 		"env set filesize1 && env set loadaddr1\0"
 
+/* PHY needs a longer autoneg timeout */
+#define PHY_ANEG_TIMEOUT		20000
+
 #include <configs/stm32mp15_common.h>
 
 #define CONFIG_SPL_TARGET		"u-boot.itb"

Thanks
Patrice

Reviewed-by on v1 1/1
#2 lore raw
In reply to Marek Vasut

Hi,

Quoted 17 lines · Marek Vasut

The Micrel PHYs on known DHSOM based boards take 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 Patrice Chotard <[email protected]>
Cc Patrick Delaunay <[email protected]>
---
  include/configs/stm32mp15_dh_dhsom.h | 3 +++
  1 file changed, 3 insertions(+)
include/configs/stm32mp15_dh_dhsom.h +0 -0
index b68e153f10b..d2fe923a33b 100644

include/configs/stm32mp15_dh_dhsom.h line 29

Quoted 9 lines
include/configs/stm32mp15_dh_dhsom.h +3 -0
@@ -21,6 +21,9 @@
  		"sf update ${loadaddr} 0x80000 ${filesize} && "		\
  		"env set filesize1 && env set loadaddr1\0"
 
+/* PHY needs a longer autoneg timeout */
+#define PHY_ANEG_TIMEOUT		20000
+
  #include <configs/stm32mp15_common.h>
 
  #define CONFIG_SPL_TARGET		"u-boot.itb"

Thanks
Patrick

#3 lore raw

Hi Marek

Quoted 32 lines · Patrick DELAUNAY

Hi,

Quoted 22 lines · Marek Vasut

The Micrel PHYs on known DHSOM based boards take 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 Patrice Chotard <[email protected]>
Cc Patrick Delaunay <[email protected]>

---
  include/configs/stm32mp15_dh_dhsom.h | 3 +++

  1 file changed, 3 insertions(+)
include/configs/stm32mp15_dh_dhsom.h +0 -0
index b68e153f10b..d2fe923a33b 100644
@@ -21,6 +21,9 @@
           "sf update ${loadaddr} 0x80000 ${filesize} && "        \

          "env set filesize1 && env set loadaddr1\0" +/* PHY needs a longer autoneg timeout */

include/configs/stm32mp15_dh_dhsom.h +2 -0
+#define PHY_ANEG_TIMEOUT        20000
+
Quoted 2 lines

  #include <configs/stm32mp15_common.h>
    #define CONFIG_SPL_TARGET        "u-boot.itb"

Quoted 4 lines

Thanks
Patrick

Applied to u-boot-stm32/next

Thanks
Patrice