Skip to content

Commit

Permalink
mdio: unused ethtool functions
Browse files Browse the repository at this point in the history
Use it or lose it.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Dec 26, 2013
1 parent c49fa25 commit 652a4a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
28 changes: 0 additions & 28 deletions drivers/net/mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,34 +341,6 @@ void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio,
}
EXPORT_SYMBOL(mdio45_ethtool_gset_npage);

/**
* mdio45_ethtool_spauseparam_an - set auto-negotiated pause parameters
* @mdio: MDIO interface
* @ecmd: Ethtool request structure
*
* This function assumes that the PHY has an auto-negotiation MMD. It
* will enable and disable advertising of flow control as appropriate.
*/
void mdio45_ethtool_spauseparam_an(const struct mdio_if_info *mdio,
const struct ethtool_pauseparam *ecmd)
{
int adv, old_adv;

WARN_ON(!(mdio->mmds & MDIO_DEVS_AN));

old_adv = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_AN,
MDIO_AN_ADVERTISE);
adv = ((old_adv & ~(ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM)) |
mii_advertise_flowctrl((ecmd->rx_pause ? FLOW_CTRL_RX : 0) |
(ecmd->tx_pause ? FLOW_CTRL_TX : 0)));
if (adv != old_adv) {
mdio->mdio_write(mdio->dev, mdio->prtad, MDIO_MMD_AN,
MDIO_AN_ADVERTISE, adv);
mdio45_nway_restart(mdio);
}
}
EXPORT_SYMBOL(mdio45_ethtool_spauseparam_an);

/**
* mdio_mii_ioctl - MII ioctl interface for MDIO (clause 22 or 45) PHYs
* @mdio: MDIO interface
Expand Down
3 changes: 0 additions & 3 deletions include/linux/mdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ extern int mdio45_nway_restart(const struct mdio_if_info *mdio);
extern void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio,
struct ethtool_cmd *ecmd,
u32 npage_adv, u32 npage_lpa);
extern void
mdio45_ethtool_spauseparam_an(const struct mdio_if_info *mdio,
const struct ethtool_pauseparam *ecmd);

/**
* mdio45_ethtool_gset - get settings for ETHTOOL_GSET
Expand Down

0 comments on commit 652a4a5

Please sign in to comment.