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

   ## Summary
   
   With CONFIG_ETH0_PHY_MULTI, the YT8512 specific initialization in 
imxrt_initphy() was executed for every PHY except the YT8512, because the 
imxrt_phy_is() test was inverted.  On a LAN8720 it writes to registers 30/31 
(interrupt mask and special control/status), clearing the 4B5B enable bit and 
breaking 100BASE-TX.  Only run it when the detected PHY is a YT8512.
   
   imxrt_phyintenable() returned -ENOSYS for the LAN8720/LAN8742A, so 
SIOCMIINOTIFY (used by the NETINIT link monitor) failed on boards using these 
PHYs.  Enable the link down and auto-negotiation complete interrupts on them, 
both when selected at compile time and at run time with CONFIG_ETH0_PHY_MULTI.
   
   ## Impact
   
   Users will be able to use other PHYs with iMXRT
   
   ## Testing
   
   ```
   alan@dev:~$ ping 10.10.10.10
   PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
   64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=2.76 ms
   ^C
   --- 10.10.10.10 ping statistics ---
   1 packets transmitted, 1 received, 0% packet loss, time 0ms
   rtt min/avg/max/mdev = 2.761/2.761/2.761/0.000 ms
   alan@dev:~$ telnet 10.10.10.10
   Trying 10.10.10.10...
   Connected to 10.10.10.10.
   Escape character is '^]'.
   
   NuttShell (NSH)
   nsh> uname -a
   NuttX EC300 0.0.0 8be26497-dirty Oct 15 2026 16:04:43 arm ddcnc-ec300
   nsh> ?
   help usage:  help [-v] [<cmd>]
   
       .           cp          false       mkdir       set         uname       
       [           cmp         fdinfo      mkrd        kill        umount      
       ?           dirname     free        mount       pkill       unset       
       alias       df          help        mv          sleep       uptime      
       unalias     dmesg       hexdump     pidof       usleep      watch       
       arp         echo        ifconfig    printf      source      xd          
       basename    env         ifdown      ps          test        
       break       exec        ifup        pwd         time        
       cat         exit        ls          rm          true        
       cd          expr        du          rmdir       truncate    
   
   Builtin Apps:
       dd         nsh        ping       sh         telnetd    
   nsh> ping 10.10.10.1
   ping [7:100]
   nsh> PING 10.10.10.1 56 bytes of data
   56 bytes from 10.10.10.1: icmp_seq=0 time=0.0 ms
   56 bytes from 10.10.10.1: icmp_seq=1 time=0.0 ms
   56 bytes from 10.10.10.1: icmp_seq=2 time=0.0 ms
   56 bytes from 10.10.10.1: icmp_seq=3 time=0.0 ms
   56 bytes from 10.10.10.1: icmp_seq=4 time=0.0 ms
   56 bytes from 10.10.10.1: icmp_seq=5 time=0.0 ms
   56 bytes from 10.10.10.1: icmp_seq=6 time=0.0 ms
   56 bytes from 10.10.10.1: icmp_seq=7 time=0.0 ms
   56 bytes from 10.10.10.1: icmp_seq=8 time=0.0 ms
   56 bytes from 10.10.10.1: icmp_seq=9 time=0.0 ms
   10 packets transmitted, 10 received, 0% packet loss, time 10100 ms
   rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms
   nsh>
   ```


-- 
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