nuttx/arch/arm
Daniel P. Carvalho 87f2744e6c arch/arm/stm32h5: fail the PHY initialization when the reset times out.
The driver has the same code as the one of the STM32H7. When the PHY did
not clear the reset bit in time, stm32_phyinit() returned the result of
the last MDIO read. The bus reads all ones when the PHY does not answer
yet, and that read succeeds, so the function returned OK and the driver
went on with its default of 10 Mbps and half duplex, while the PHY could
negotiate 100 Mbps and full duplex.

Return -ETIMEDOUT, so that bringing the interface up fails and the
failure is not hidden.

It builds for nucleo-h563zi:netnsh, but it was not tested on hardware.

Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com>
Assisted-by: Claude:claude-sonnet-5
2026-09-23 08:21:59 +02:00
..
include arch/arm/imxrt: Add missing imxrt118x IRQ 238/239 definitions 2026-09-23 11:24:44 +08:00
src arch/arm/stm32h5: fail the PHY initialization when the reset times out. 2026-09-23 08:21:59 +02:00
CMakeLists.txt
Kconfig drivers/vhost: Add vhost-net, a device-role virtio network driver. 2026-09-21 10:40:13 -03:00