Skip to content

Commit 652a4a5

Browse files
shemmingerdavem330
authored andcommitted
mdio: unused ethtool functions
Use it or lose it. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c49fa25 commit 652a4a5

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

drivers/net/mdio.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -341,34 +341,6 @@ void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio,
341341
}
342342
EXPORT_SYMBOL(mdio45_ethtool_gset_npage);
343343

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-
*/
352-
void 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-
}
370-
EXPORT_SYMBOL(mdio45_ethtool_spauseparam_an);
371-
372344
/**
373345
* mdio_mii_ioctl - MII ioctl interface for MDIO (clause 22 or 45) PHYs
374346
* @mdio: MDIO interface

include/linux/mdio.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ extern int mdio45_nway_restart(const struct mdio_if_info *mdio);
7070
extern void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio,
7171
struct ethtool_cmd *ecmd,
7272
u32 npage_adv, u32 npage_lpa);
73-
extern void
74-
mdio45_ethtool_spauseparam_an(const struct mdio_if_info *mdio,
75-
const struct ethtool_pauseparam *ecmd);
7673

7774
/**
7875
* mdio45_ethtool_gset - get settings for ETHTOOL_GSET

0 commit comments

Comments
 (0)