]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2908075999b9931c394d02cba4b832924c7103b
tree992ef4a633b4924b4aafe733dc429b7d1dcee079
parentb27d196caaa1bca5275ca865fc0cbaab044d89aa
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