net: phy: Expose phydev::dev_flags through sysfs
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 10 Mar 2021 22:12:43 +0000 (14:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Mar 2021 20:47:27 +0000 (12:47 -0800)
commitb0bade515d360800fc701e1a965cf41adcc4ec1b
tree992ef4a633b4924b4aafe733dc429b7d1dcee079
parentee47ed08d75e8f16b3cf882061ee19c2ea19dd6c
net: phy: Expose phydev::dev_flags through sysfs

phydev::dev_flags contains a bitmask of configuration bits requested by
the consumer of a PHY device (Ethernet MAC or switch) towards the PHY
driver. Since these flags are often used for requesting LED or other
type of configuration being able to quickly audit them without
instrumenting the kernel is useful.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/ABI/testing/sysfs-class-net-phydev
drivers/net/phy/phy_device.c