Skip to content

net: phy: Reduce duplication

Florian Fainelli lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyIn review
  2. v25 patches 1 replySuperseded
  3. v15 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- removed unused "reg" variable in teranetics.c
- fixed subject for patch 5 since we actually use gen10g_no_soft_reset()

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: phy: aquantia: Utilize genphy_c45_aneg_done()drivers/net/phy/aquantia.c+6 -140 replies
2/5net: phy: Export gen10g_* functionsdrivers/net/phy/phy-c45.c include/linux/phy.h+21 -70 replies
3/5net: phy: teranetics: Utilize generic functionsdrivers/net/phy/teranetics.c+5 -270 replies
4/5net: phy: cortina: Utilize generic functionsdrivers/net/phy/cortina.c+3 -150 replies
5/5net: phy: marvell10g: Utilize gen10g_no_soft_reset()drivers/net/phy/marvell10g.c+1 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH net-next v3 0/5] net: phy: Reduce duplication

Hi all,

This patch series reduces the duplication among 10G PHY drivers that just essentially stub most functions, but do that while replicating what the existing generic functions do.

Changes in v3:

- removed unused "reg" variable in teranetics.c
- fixed subject for patch 5 since we actually use gen10g_no_soft_reset()

Changes in v2:

- rename gen10g_soft_reset() to gen10g_no_soft_reset() to better illustrate what it does (or does not)
- removed stray comment in marvell10g.c

Florian Fainelli (5):
net: phy: aquantia: Utilize genphy_c45_aneg_done()
net: phy: Export gen10g_* functions
net: phy: teranetics: Utilize generic functions
net: phy: cortina: Utilize generic functions
net: phy: marvell10g: Utilize gen10g_no_soft_reset()

 drivers/net/phy/aquantia.c   | 20 ++++++--------------
 drivers/net/phy/cortina.c    | 18 +++---------------
 drivers/net/phy/marvell10g.c | 11 +----------
 drivers/net/phy/phy-c45.c    | 20 +++++++++++++-------
 drivers/net/phy/teranetics.c | 32 +++++---------------------------
 include/linux/phy.h          |  8 ++++++++
 6 files changed, 36 insertions(+), 73 deletions(-)
Signature · 1 line
2.14.1