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)
commitc920f745f45d4610e08943690301b8055fb5e834
tree8c9c51eecb9f4ea1cac0ea7ab736855a3d3cfff2
parent82c76aca81187b3d28a6fb3062f6916450ce955e
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