Re: [PATCH V5] net: phy: Add sysfs attribute for PHY c45 identifiers.

From: Andrew Lunn
Date: Fri Jun 16 2023 - 10:50:43 EST


On Fri, Jun 16, 2023 at 10:40:17PM +0800, Jianhui Zhao wrote:
> If a phydevice use c45, its phy_id property is always 0, so
> this adds a c45_ids sysfs attribute group contains mmd id
> attributes from mmd0 to mmd31 to MDIO devices. Note that only
> mmd with valid value will exist. This attribute group can be
> useful when debugging problems related to phy drivers.
>
> Likes this:
> /sys/bus/mdio_bus/devices/mdio-bus:05/c45_ids/mmd1
> /sys/bus/mdio_bus/devices/mdio-bus:05/c45_ids/mmd2
> ...
> /sys/bus/mdio_bus/devices/mdio-bus:05/c45_ids/mmd31
>
> Signed-off-by: Jianhui Zhao <zhaojh329@xxxxxxxxx>
> Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
> Reviewed-by: Russell King <linux@xxxxxxxxxxxxxxx>

Did you read Russells comments? And Jakubs? Please don't ignore them.

Andrew

---
pw-bot: cr