Re: [PATCH net-next] net: phy: Add c45_phy_ids sysfs entry

From: Russell King (Oracle)
Date: Mon May 26 2025 - 04:20:16 EST


On Mon, May 26, 2025 at 08:11:21AM +0000, Yajun Deng wrote:
> c45 device:
> $ ls /sys/class/net/eth0/phydev/
> attached_dev driver of_node phy_id power subsystem
> c45_phy_ids hwmon phy_has_fixups phy_interface statistics uevent
>
> $ ls /sys/class/net/eth0/phydev/c45_phy_ids
> mmd10_device_id mmd17_device_id mmd23_device_id mmd2_device_id mmd7_device_id
> mmd11_device_id mmd18_device_id mmd24_device_id mmd30_device_id mmd8_device_id
> mmd12_device_id mmd19_device_id mmd25_device_id mmd31_device_id mmd9_device_id
> mmd13_device_id mmd1_device_id mmd26_device_id mmd3_device_id
> mmd14_device_id mmd20_device_id mmd27_device_id mmd4_device_id
> mmd15_device_id mmd21_device_id mmd28_device_id mmd5_device_id
> mmd16_device_id mmd22_device_id mmd29_device_id mmd6_device_id

I suspect you don't have a PHY that defines all these IDs. Are you sure
your .is_visible() is working properly?

--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!