]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b7671a1a9cb9bca76caad4eab1dcbce92d89d35
tree75e5fe8498c57e8d7863dfd1b0146e5eec04fcb7
parentdf64d1ad36ffb891f5b8b2c8f42b036133fbdeae
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