Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

stephen hemminger and committed by
David S. Miller
652a4a53 c49fa257

-31
-28
drivers/net/mdio.c
··· 342 342 EXPORT_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 - */ 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 - 372 - /** 373 345 * mdio_mii_ioctl - MII ioctl interface for MDIO (clause 22 or 45) PHYs 374 346 * @mdio: MDIO interface 375 347 * @mii_data: MII ioctl data structure
-3
include/linux/mdio.h
··· 70 70 extern void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio, 71 71 struct ethtool_cmd *ecmd, 72 72 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); 76 73 77 74 /** 78 75 * mdio45_ethtool_gset - get settings for ETHTOOL_GSET