acassis opened a new pull request, #21555:
URL: https://github.com/apache/nuttx/pull/21555

   ## Summary
   
   When the PHY autonegotiation does not complete in imxrt_initphy(),
   typically because the Ethernet cable is not connected at boot, the
   driver stopped autonegotiation and forced 10Mbps half duplex.  On the
   ddcnc-ec300 board (LAN8720A) the link then never came up after the
   cable was connected: the PHY LEDs stayed off and the NETINIT link
   monitor, which waits for the PHY to report the link, never brought
   the interface up.
       
   With CONFIG_ARCH_PHY_INTERRUPT the link changes are reported
   (SIOCMIINOTIFY) and the interface is brought up again when the link
   appears, which configures the MAC for the negotiated link.  In that
   case leave autonegotiation on, as the TODO comment suggested.  Without
   it nothing would reconfigure the MAC later, so keep the old 10Mbps
   fallback.
   
   ## Impact
   
   User will be able to connect the Ethernet cable after the board initialized 
and get it working
   
   ## Testing
   
   Tested on the ddcnc-ec300: boot with the cable disconnected, connect
   it later; the link comes up and the board answers ping.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to