AM4376: PHY Reset Not Working After Migration from Kernel 5.10.10 to Kernel 6.12

Part Number: AM4376

Hi Team,

We are facing an issue with PHY reset after migrating our platform from Linux Kernel 5.10.10 to Linux Kernel 6.12.After migration to Kernel 6.12, the PHY reset sequence is not functioning as expected.Due to this, the Ethernet PHY is not being properly initialized after /reset.

 

root@am437x-evm:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 90:06:F2:45:E7:CD
          inet6 addr: fe80::9206:f2ff:fe45:e7cd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:240 (240.0 B)  TX bytes:516 (516.0 B)

eth1      Link encap:Ethernet  HWaddr 5E:6A:53:2A:9C:61
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:300 (300.0 B)  TX bytes:300 (300.0 B)

root@am437x-evm:~# phytool write eth0/0x0/0x1F 0x8000
error: phy_write (-95)
root@am437x-evm:~# phytool write eth1/0x1/0x1F 0x8000
error: phy_write (-95)
root@am437x-evm:~# phytool write eth0/0x0/0x1F 0x0000
error: phy_write (-95)
root@am437x-evm:~# ^C
root@am437x-evm:~# uname -a
Linux am437x-evm 6.12.49 #1 Mon Oct 12 11:40:34 IST 2026 armv7l GNU/Linux
root@am437x-evm:~# ^C
root@am437x-evm:~# Please see log 

 

  • Hi,

    Apologies, I am not seeing the log. Which interfaces are you using the CPSW or the PRU interfaces?

    Best Regards,

    Schuyler

  • We are using pru 

    root@am437x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 90:06:F2:45:E7:CD
              inet6 addr: fe80::9206:f2ff:fe45:e7cd/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:240 (240.0 B)  TX bytes:516 (516.0 B)

    eth1      Link encap:Ethernet  HWaddr 5E:6A:53:2A:9C:61
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:6 errors:0 dropped:0 overruns:0 frame:0
              TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:300 (300.0 B)  TX bytes:300 (300.0 B)

    root@am437x-evm:~# phytool write eth0/0x0/0x1F 0x8000
    error: phy_write (-95)
    root@am437x-evm:~# phytool write eth1/0x1/0x1F 0x8000
    error: phy_write (-95)
    root@am437x-evm:~# phytool write eth0/0x0/0x1F 0x0000
    error: phy_write (-95)
    root@am437x-evm:~# ^C
    root@am437x-evm:~# uname -a
    Linux am437x-evm 6.12.49 #1 Mon Oct 12 11:40:34 IST 2026 armv7l GNU/Linux
    root@am437x-evm:~# 

    Please see above details