diff options
author | Pramod Kumar <pramod.kumar@broadcom.com> | 2016-06-10 07:33:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-11 08:24:53 +0200 |
commit | f20e6657a8758fe8d074889a6f1883674f01c7f2 (patch) | |
tree | a55ed4fb2fd0a3087905a230ffaab7d4d40d52e6 /drivers/net/phy/mdio-mux-gpio.c | |
parent | sctp: sctp should change socket state when shutdown is received (diff) | |
download | linux-f20e6657a8758fe8d074889a6f1883674f01c7f2.tar.xz linux-f20e6657a8758fe8d074889a6f1883674f01c7f2.zip |
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 'drivers/net/phy/mdio-mux-gpio.c')
-rw-r--r-- | drivers/net/phy/mdio-mux-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-mux-gpio.c b/drivers/net/phy/mdio-mux-gpio.c index 7ddb1ab70891..919949960a10 100644 --- a/drivers/net/phy/mdio-mux-gpio.c +++ b/drivers/net/phy/mdio-mux-gpio.c @@ -55,7 +55,7 @@ static int mdio_mux_gpio_probe(struct platform_device *pdev) return PTR_ERR(s->gpios); r = mdio_mux_init(&pdev->dev, - mdio_mux_gpio_switch_fn, &s->mux_handle, s); + mdio_mux_gpio_switch_fn, &s->mux_handle, s, NULL); if (r != 0) { gpiod_put_array(s->gpios); |