phylib: mdio: Add sysfs attribute for PHY identifiers.
authorNick Bowler <nbowler@elliptictech.com>
Wed, 7 Nov 2012 06:20:34 +0000 (06:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2012 21:38:15 +0000 (16:38 -0500)
commit56277f40d73f12d9ffb12b5a6bd7e0ad1f2284b3
tree75e5fe8498c57e8d7863dfd1b0146e5eec04fcb7
parentb1ead1aea1d7e3c260d896943056453717577525
phylib: mdio: Add sysfs attribute for PHY identifiers.

This adds a phy_id sysfs attribute to MDIO devices, containing the
32-bit PHY identifier reported by the device.  This attribute can
be useful when debugging problems related to phy drivers.  Other
enumerable buses already have similar attributes.

Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/ABI/testing/sysfs-bus-mdio [new file with mode: 0644]
drivers/net/phy/mdio_bus.c