net: phy: Add c45_phy_ids sysfs directory entry
authorYajun Deng <yajun.deng@linux.dev>
Fri, 13 Jun 2025 13:19:03 +0000 (21:19 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 17 Jun 2025 13:11:51 +0000 (15:11 +0200)
commit170e4e3944aa39accf64d869b27c187f8c08abc7
tree0ed608e44088aad7a25085aa8d2e5a654f720676
parent9149a6328897acf718e68684ff432f03b40ba61a
net: phy: Add c45_phy_ids sysfs directory entry

The phy_id field only shows the PHY ID of the C22 device, and the C45
device did not store its PHY ID in this field.

Add a new phy_mmd_group, and export the mmd<n>_device_id for the C45
device. These files are invisible to the C22 device.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250613131903.2961-1-yajun.deng@linux.dev
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/ABI/testing/sysfs-class-net-phydev
drivers/net/phy/phy_device.c