aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/of_mdio.h
diff options
context:
space:
mode:
authorAndy Fleming <afleming@gmail.com>2014-01-10 14:28:11 +0800
committerDavid S. Miller <davem@davemloft.net>2014-01-13 14:29:49 -0800
commit7614aba6a330a6c4937edc24fd4c6a935c1ae703 (patch)
treeb18119276b59537a5a280a0fbe17def8dff3f020 /include/linux/of_mdio.h
parentphylib: Support attaching to generic 10g driver (diff)
downloadwireguard-linux-7614aba6a330a6c4937edc24fd4c6a935c1ae703.tar.xz
wireguard-linux-7614aba6a330a6c4937edc24fd4c6a935c1ae703.zip
phylib: Add of_phy_attach
10G PHYs don't currently support running the state machine, which is implicitly setup via of_phy_connect(). Therefore, it is necessary to implement an OF version of phy_attach(), which does everything except start the state machine. 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/linux/of_mdio.h')
-rw-r--r--include/linux/of_mdio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/of_mdio.h b/include/linux/of_mdio.h
index 8163107b94b4..6fe8464ed767 100644
--- a/include/linux/of_mdio.h
+++ b/include/linux/of_mdio.h
@@ -19,6 +19,9 @@ extern struct phy_device *of_phy_connect(struct net_device *dev,
struct device_node *phy_np,
void (*hndlr)(struct net_device *),
u32 flags, phy_interface_t iface);
+struct phy_device *of_phy_attach(struct net_device *dev,
+ struct device_node *phy_np, u32 flags,
+ phy_interface_t iface);
extern struct phy_device *of_phy_connect_fixed_link(struct net_device *dev,
void (*hndlr)(struct net_device *),
phy_interface_t iface);
@@ -44,6 +47,13 @@ static inline struct phy_device *of_phy_connect(struct net_device *dev,
return NULL;
}
+static inline struct phy_device *of_phy_attach(struct net_device *dev,
+ struct device_node *phy_np,
+ u32 flags, phy_interface_t iface)
+{
+ return NULL;
+}
+
static inline struct phy_device *of_phy_connect_fixed_link(struct net_device *dev,
void (*hndlr)(struct net_device *),
phy_interface_t iface)