You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stm32/eth: Permanently register netif with lwip during startup.
This restructures LWIP initialization and removes blocking PHY loops
to support static IP configuration before active(True) and eliminate
timeouts when starting without cable.
Changes:
- Split netif init into eth_netif_init_early() and eth_lwip_init()
- Initialize netif structure in eth_init() for early IP config
- Move netif stack registration to eth_start()
- Remove blocking PHY autonegotiation loop from eth_mac_init()
- Add eth_phy_configure_autoneg() for non-blocking setup
- Add eth_phy_link_status_poll() for link state management
- Only start DHCP if no static IP configured (0.0.0.0)
- Use default MAC speed/duplex config until autoneg completes
Benefits:
- Static IP can be configured before active(True)
- active(True) succeeds immediately without cable
- No more 10-second timeout on startup
- Link detection works properly when cable plugged later
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
0 commit comments