aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mdio.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-12-26 13:12:41 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-26 13:29:35 -0500
commit652a4a53fce4b50e4cfa92055deefadc3a3627fa (patch)
treecfda672cad5cd38720817c14b02abf74db3e70c8 /drivers/net/mdio.c
parentc49fa257ba260410c76ab6e7f66fa1ec2dab3faa (diff)
mdio: unused ethtool functions
Use it or lose it. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mdio.c')
-rw-r--r--drivers/net/mdio.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/net/mdio.c b/drivers/net/mdio.c
index 8403316eb02b..3e027ed0b3bb 100644
--- a/drivers/net/mdio.c
+++ b/drivers/net/mdio.c
@@ -342,34 +342,6 @@ void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio,
342EXPORT_SYMBOL(mdio45_ethtool_gset_npage); 342EXPORT_SYMBOL(mdio45_ethtool_gset_npage);
343 343
344/** 344/**
345 * mdio45_ethtool_spauseparam_an - set auto-negotiated pause parameters
346 * @mdio: MDIO interface
347 * @ecmd: Ethtool request structure
348 *
349 * This function assumes that the PHY has an auto-negotiation MMD. It
350 * will enable and disable advertising of flow control as appropriate.
351 */
352void mdio45_ethtool_spauseparam_an(const struct mdio_if_info *mdio,
353 const struct ethtool_pauseparam *ecmd)
354{
355 int adv, old_adv;
356
357 WARN_ON(!(mdio->mmds & MDIO_DEVS_AN));
358
359 old_adv = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_AN,
360 MDIO_AN_ADVERTISE);
361 adv = ((old_adv & ~(ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM)) |
362 mii_advertise_flowctrl((ecmd->rx_pause ? FLOW_CTRL_RX : 0) |
363 (ecmd->tx_pause ? FLOW_CTRL_TX : 0)));
364 if (adv != old_adv) {
365 mdio->mdio_write(mdio->dev, mdio->prtad, MDIO_MMD_AN,
366 MDIO_AN_ADVERTISE, adv);
367 mdio45_nway_restart(mdio);
368 }
369}
370EXPORT_SYMBOL(mdio45_ethtool_spauseparam_an);
371
372/**
373 * mdio_mii_ioctl - MII ioctl interface for MDIO (clause 22 or 45) PHYs 345 * mdio_mii_ioctl - MII ioctl interface for MDIO (clause 22 or 45) PHYs
374 * @mdio: MDIO interface 346 * @mdio: MDIO interface
375 * @mii_data: MII ioctl data structure 347 * @mii_data: MII ioctl data structure