1 From 073752aa59b3db120b2508d5bdd0598ada25fd25 Mon Sep 17 00:00:00 2001
2 From: Srinivas Kandagatla <srinivas.kandagatla@st.com>
3 Date: Thu, 16 Jan 2014 10:52:27 +0000
4 Subject: [PATCH] net: stmmac: make stmmac_mdio_reset non-static
6 This patch promotes stmmac_mdio_reset function from static to
7 non-static, so that power management functions can decide to reset if
8 the IP comes out from lowe power state specially hibernation cases.
10 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
11 Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
14 drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 +
15 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +-
16 2 files changed, 2 insertions(+), 1 deletion(-)
18 diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
19 index 92be6b3..5a568015 100644
20 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h
21 +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
22 @@ -110,6 +110,7 @@ struct stmmac_priv {
24 int stmmac_mdio_unregister(struct net_device *ndev);
25 int stmmac_mdio_register(struct net_device *ndev);
26 +int stmmac_mdio_reset(struct mii_bus *mii);
27 void stmmac_set_ethtool_ops(struct net_device *netdev);
28 extern const struct stmmac_desc_ops enh_desc_ops;
29 extern const struct stmmac_desc_ops ndesc_ops;
30 diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
31 index aab12d2..a468eb1 100644
32 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
33 +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
34 @@ -128,7 +128,7 @@ static int stmmac_mdio_write(struct mii_bus *bus, int phyaddr, int phyreg,
35 * @bus: points to the mii_bus structure
36 * Description: reset the MII bus
38 -static int stmmac_mdio_reset(struct mii_bus *bus)
39 +int stmmac_mdio_reset(struct mii_bus *bus)
41 #if defined(CONFIG_STMMAC_PLATFORM)
42 struct net_device *ndev = bus->priv;