nuttx/arch/arm
Daniel P. Carvalho 9d861ca27e arch/arm/stm32h7: wait for the PHY link in milliseconds.
The PHY was polled with nxsched_usleep(100) in a loop of 0x1998
iterations, so the time the link had to come up depended on the period
of the system tick. With the usual 10 ms tick that is about 65 s, but
with CONFIG_SCHED_TICKLESS and a 100 us tick it is about 0.65 s, shorter
than the auto-negotiation of the PHY (about 1.7 s on the board tested),
and the interface could not be brought up.

Poll every 10 ms and give the PHY up to 5 s, both for the link and for
the auto-negotiation to complete, whatever the tick.

Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com>
Assisted-by: Claude:claude-sonnet-5
2026-09-21 14:46:24 +08:00
..
include arch/arm/imxrt: Add support for IOMUXC and rgpio for imxrt118x 2026-09-19 22:38:45 +08:00
src arch/arm/stm32h7: wait for the PHY link in milliseconds. 2026-09-21 14:46:24 +08:00
CMakeLists.txt
Kconfig arch/arm/imxrt: Add imxrt118x_memorymap 2026-09-19 22:38:45 +08:00