]> 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)
commitda343f9801ff5461dbf82ed06212a19e4a5363f6
tree992ef4a633b4924b4aafe733dc429b7d1dcee079
parente87e748dfbeb412a32129780a425bc66e2355ba5
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