-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Nick Bowler
authored and
David S. Miller
committed
Nov 9, 2012
1 parent
b1ead1a
commit 56277f4
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
What: /sys/bus/mdio_bus/devices/.../phy_id | ||
Date: November 2012 | ||
KernelVersion: 3.8 | ||
Contact: netdev@vger.kernel.org | ||
Description: | ||
This attribute contains the 32-bit PHY Identifier as reported | ||
by the device during bus enumeration, encoded in hexadecimal. | ||
This ID is used to match the device with the appropriate | ||
driver. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters