]> 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)
commit537fa229f0d41398f8acc22a5bad942c6441ff1a
tree75e5fe8498c57e8d7863dfd1b0146e5eec04fcb7
parentb2459f887fc417f436a8138d02da592c8578a53d
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