aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mdio-mux.h
diff options
context:
space:
mode:
authorPramod Kumar <pramod.kumar@broadcom.com>2016-06-10 01:33:45 -0400
committerDavid S. Miller <davem@davemloft.net>2016-06-11 02:24:53 -0400
commitf20e6657a8758fe8d074889a6f1883674f01c7f2 (patch)
treea55ed4fb2fd0a3087905a230ffaab7d4d40d52e6 /include/linux/mdio-mux.h
parentd46e416c11c88ef1deb5c7f19271806a5be597fe (diff)
mdio: mux: Enhanced MDIO mux framework for integrated multiplexers
An integrated multiplexer uses same address space for "muxed bus selection" and "generation of mdio transaction" hence its good to register parent bus from mux driver. Hence added a mechanism where mux driver could register a parent bus and pass it down to framework via mdio_mux_init api. Signed-off-by: Pramod Kumar <pramod.kumar@broadcom.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mdio-mux.h')
-rw-r--r--include/linux/mdio-mux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mdio-mux.h b/include/linux/mdio-mux.h
index a243dbba8659..61f5b21b31c7 100644
--- a/include/linux/mdio-mux.h
+++ b/include/linux/mdio-mux.h
@@ -10,11 +10,13 @@
10#ifndef __LINUX_MDIO_MUX_H 10#ifndef __LINUX_MDIO_MUX_H
11#define __LINUX_MDIO_MUX_H 11#define __LINUX_MDIO_MUX_H
12#include <linux/device.h> 12#include <linux/device.h>
13#include <linux/phy.h>
13 14
14int mdio_mux_init(struct device *dev, 15int mdio_mux_init(struct device *dev,
15 int (*switch_fn) (int cur, int desired, void *data), 16 int (*switch_fn) (int cur, int desired, void *data),
16 void **mux_handle, 17 void **mux_handle,
17 void *data); 18 void *data,
19 struct mii_bus *mux_bus);
18 20
19void mdio_mux_uninit(void *mux_handle); 21void mdio_mux_uninit(void *mux_handle);
20 22