Skip to content

fec: ethtool: move to new api {get|set}_link_ksettings

Philippe Reynes lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: ethtool: export conversion function between u32 and link modeinclude/linux/ethtool.h net/core/ethtool.c+19 -90 replies
2/3phy: add generic function to support ksetting supportdrivers/net/phy/phy.c include/linux/phy.h+85 -02 replies
3/3fec: move to new ethtool api {get|set}_link_ksettingsdrivers/net/ethernet/freescale/fec_main.c+8 -81 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchFugang Duan
1/3
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] fec: ethtool: move to new api {get|set}_link_ksettings

Ethtool has a new api {get|set}_link_ksettings that deprecate the old api {get|set}_settings. We update the fec driver to use this new ethtool api.

For this first version, I've converted old u32 value in phy structure to link_modes structure. Another way would be to replace u32 in phy structure to use DECLARE_LINK_MODE_MASK for advertising, ....

Philippe Reynes (3):
net: ethtool: export conversion function between u32 and link mode
phy: add generic function to support ksetting support
fec: move to new ethtool api {get|set}_link_ksettings

 drivers/net/ethernet/freescale/fec_main.c |   16 +++---
 drivers/net/phy/phy.c                     |   81 +++++++++++++++++++++++++++++
 include/linux/ethtool.h                   |    7 +++
 include/linux/phy.h                       |    4 ++
 net/core/ethtool.c                        |   21 ++++---
 5 files changed, 112 insertions(+), 17 deletions(-)
Signature · 1 line
1.7.4.4