diff options
author | Andy Fleming <afleming@gmail.com> | 2014-01-10 14:27:54 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-13 14:29:49 -0800 |
commit | 257184d7cc03519e1ea37b421879767b4194ce8c (patch) | |
tree | 2d9d523b12f6a35788d60377f9c532cdb87db27c /include | |
parent | 124059fd53af0ce62220473f144cf03352dc08f1 (diff) | |
download | linux-stable-257184d7cc03519e1ea37b421879767b4194ce8c.tar.gz linux-stable-257184d7cc03519e1ea37b421879767b4194ce8c.tar.bz2 linux-stable-257184d7cc03519e1ea37b421879767b4194ce8c.zip |
phylib: Support attaching to generic 10g driver
phy_attach_direct() may now attach to a generic 10G driver. It can
also be used exactly as phy_connect_direct(), which will be useful
when using of_mdio, as phy_connect (and therefore of_phy_connect)
start the PHY state machine, which is currently irrelevant for 10G
PHYs.
Signed-off-by: Andy Fleming <afleming@gmail.com>
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index a9685b109049..565188ca328f 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -588,6 +588,8 @@ int phy_resume(struct phy_device *phydev); struct phy_device *phy_attach(struct net_device *dev, const char *bus_id, phy_interface_t interface); struct phy_device *phy_find_first(struct mii_bus *bus); +int phy_attach_direct(struct net_device *dev, struct phy_device *phydev, + u32 flags, phy_interface_t interface); int phy_connect_direct(struct net_device *dev, struct phy_device *phydev, void (*handler)(struct net_device *), phy_interface_t interface); |