]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Add phy_standalone sysfs entry
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 28 May 2019 17:38:10 +0000 (20:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 04:48:53 +0000 (21:48 -0700)
commit58af32c14f7da07a3488d73fb64e2cec7dbf97fe
tree8c9c51eecb9f4ea1cac0ea7ab736855a3d3cfff2
parentbfb970e39f5bc2125d8c3ea2fc1d418734f883bb
net: phy: Add phy_standalone sysfs entry

Export a phy_standalone device attribute that is meant to give the
indication that this PHY lacks an attached_dev and its corresponding
sysfs link. The attribute will be created only when the
phy_attach_direct() function will be called with a NULL net_device.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-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