Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 073752aa authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by David S. Miller
Browse files

net: stmmac: make stmmac_mdio_reset non-static



This patch promotes stmmac_mdio_reset function from static to
non-static, so that power management functions can decide to reset if
the IP comes out from lowe power state specially hibernation cases.

Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@st.com>
Acked-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 523f11b5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -110,6 +110,7 @@ struct stmmac_priv {


int stmmac_mdio_unregister(struct net_device *ndev);
int stmmac_mdio_unregister(struct net_device *ndev);
int stmmac_mdio_register(struct net_device *ndev);
int stmmac_mdio_register(struct net_device *ndev);
int stmmac_mdio_reset(struct mii_bus *mii);
void stmmac_set_ethtool_ops(struct net_device *netdev);
void stmmac_set_ethtool_ops(struct net_device *netdev);
extern const struct stmmac_desc_ops enh_desc_ops;
extern const struct stmmac_desc_ops enh_desc_ops;
extern const struct stmmac_desc_ops ndesc_ops;
extern const struct stmmac_desc_ops ndesc_ops;
+1 −1
Original line number Original line Diff line number Diff line
@@ -128,7 +128,7 @@ static int stmmac_mdio_write(struct mii_bus *bus, int phyaddr, int phyreg,
 * @bus: points to the mii_bus structure
 * @bus: points to the mii_bus structure
 * Description: reset the MII bus
 * Description: reset the MII bus
 */
 */
static int stmmac_mdio_reset(struct mii_bus *bus)
int stmmac_mdio_reset(struct mii_bus *bus)
{
{
#if defined(CONFIG_STMMAC_PLATFORM)
#if defined(CONFIG_STMMAC_PLATFORM)
	struct net_device *ndev = bus->priv;
	struct net_device *ndev = bus->priv;