File tree Expand file tree Collapse file tree 2 files changed +0
-31
lines changed Expand file tree Collapse file tree 2 files changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -341,34 +341,6 @@ void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio,
341
341
}
342
342
EXPORT_SYMBOL (mdio45_ethtool_gset_npage );
343
343
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
344
/**
373
345
* mdio_mii_ioctl - MII ioctl interface for MDIO (clause 22 or 45) PHYs
374
346
* @mdio: MDIO interface
Original file line number Diff line number Diff line change @@ -70,9 +70,6 @@ extern int mdio45_nway_restart(const struct mdio_if_info *mdio);
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
You can’t perform that action at this time.
0 commit comments