summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-12-04 07:27:14 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-06 15:49:15 +0100
commit48df7919f9c2787c23e5efade7d5a7af39d40f13 (patch)
tree8d5ddba1b5b19bdd34e030a15a34b921e83b6d9b /include
parent725052d5fe1a1ae2979404ac265577ef3879f0f2 (diff)
downloadbarebox-48df7919f9c2787c23e5efade7d5a7af39d40f13.tar.gz
barebox-48df7919f9c2787c23e5efade7d5a7af39d40f13.tar.xz
mdio_bus: Port of_mdio_find_bus() from Linux kernel
Port of_mdio_find_bus() from Linux kernel. This function is used in MDIO multiplexor infrastructure added in following commit. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index d7b10afbc9..809f06fb1b 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -116,6 +116,8 @@ int mdiobus_detect(struct device_d *dev);
struct mii_bus *mdiobus_get_bus(int busnum);
+struct mii_bus *of_mdio_find_bus(struct device_node *mdio_bus_np);
+
/**
* mdiobus_read - Convenience function for reading a given MII mgmt register
* @bus: the mii_bus struct