Hi,
I stumbled upon a strange behaviour of ethernet PHY on my board. I have redundant rootfs configuration, which allows me to do full system updates. I installed an update with another kernel configuration (there were quire a bit of changes in the kernel config), and after rebooting the system I saw this:
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
group default qlen 1000
link/ether 00:14:2d:67:d2:90 brd ff:ff:ff:ff:ff:ff
The interface seems to be up, but I can’t set the IP address. The interesting thing is when I do a hard reset (full power cycle), then new kernel is able to get the IP address without any isssue.
I suspect the PHY here, because this is the difference from dmesg, from working ethernet just before update:
[ 8.818634] 001: Microchip KSZ9131 Gigabit PHY 5b040000.ethernet-1:07: attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_addr=5b040000.ethernet-1:07, irq=303)
and right after the update when ethernet doesn’t work:
[ 3.811209] 004: Generic PHY 5b040000.ethernet-1:07: attached PHY driver [Generic PHY] (mii_bus:phy_addr=5b040000.ethernet-1:07, irq=POLL)
Do you guys have any idea what might be wrong? A bug in the PHY driver or something else?
Kernel version used is downstream toradex kernel 5.4.129-rt61.
Board configuraion:
Toradex Apalis iMX8 QuadMax 4GB IT V1.1B
Carrier Ixora 1.2A
Update: after re-reading my message I noticed that in the second case the PHY is reported as Generic, but like I mentioned, after hard reset it works properly and reported as:
[ 2.172594] 001: Microchip KSZ9131 Gigabit PHY 5b040000.ethernet-1:07: attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_addr=5b040000.ethernet-1:07, irq=203)